Using Maven
Use the symbolsolver and the parser:
1 2 3 4 5 |
<dependency> <groupId>com.github.javaparser</groupId> <artifactId>javaparser-symbol-solver-core</artifactId> <version>3.12.0</version> </dependency> |
Use just the parser:
1 2 3 4 5 |
<dependency> <groupId>com.github.javaparser</groupId> <artifactId>javaparser-core</artifactId> <version>3.12.0</version> </dependency> |
Using Gradle
Use the symbolsolver and the parser:
1 |
compile 'com.github.javaparser:javaparser-symbol-solver-core:3.12.0' |
Use just the parser:
1 |
compile 'com.github.javaparser:javaparser-core:3.12.0' |
Documentation
First read the book, it’s the manual. You can get it for free.
There is Javadoc for the libraries.
Examples of how to use the library can be found on the Manual page of the wiki.
We have complete examples of how to set up the symbol solver and how to use the parser stand alone.
Didn’t find an answer? Try searching for existing issues
Still nothing? Open an issue or come chat on Gitter