-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
123 additions
and
60 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
example/example-base/src/main/java/com/github/xpenatan/jparser/example/NormalClassTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
package com.github.xpenatan.jparser.example; | ||
|
||
public class NormalClassTest { | ||
/*[-C++;-NATIVE] | ||
#include "NormalClassTest.h" | ||
*/ | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#include "ParentClassTest.h" | ||
|
||
float ParentClassTest::getFloatValue() | ||
{ | ||
return 1.1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#ifndef PARENTCLASSTEST_H | ||
#define PARENTCLASSTEST_H | ||
|
||
class ParentClassTest | ||
{ | ||
public: | ||
float getFloatValue(); | ||
} | ||
|
||
#endif //PARENTCLASSTEST_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 0 additions & 11 deletions
11
jParser/cpp/src/main/java/com/github/xpenatan/jparser/cpp/CppParserItem.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
jParser/cpp/src/main/java/com/github/xpenatan/jparser/cpp/NativeCPPGeneratorV2.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package com.github.xpenatan.jparser.cpp; | ||
|
||
import com.github.javaparser.ast.Node; | ||
import com.github.javaparser.ast.body.MethodDeclaration; | ||
import com.github.xpenatan.jparser.core.JParser; | ||
import com.github.xpenatan.jparser.core.JParserItem; | ||
|
||
public class NativeCPPGeneratorV2 implements CppGenerator { | ||
|
||
private String jniDir; | ||
|
||
public NativeCPPGeneratorV2(String jniDir) { | ||
this.jniDir = jniDir; | ||
} | ||
|
||
@Override | ||
public void addNativeCode(Node node, String content) { | ||
} | ||
|
||
@Override | ||
public void addNativeCode(MethodDeclaration methodDeclaration, String content) { | ||
} | ||
|
||
@Override | ||
public void addParseFile(JParser jParser, JParserItem parserItem) { | ||
System.out.println(); | ||
} | ||
|
||
@Override | ||
public void generate(JParser jParser) { | ||
|
||
} | ||
} |