| Nicholas Smith | 26c753d | 2015-01-14 10:02:55 +0000 | [diff] [blame] | 1 | # Java Parser and Abstract Syntax Tree for Java 8.
|
| matozoid | 2cab70d | 2013-09-16 13:31:33 +0200 | [diff] [blame] | 2 |
|
| Nicholas Smith | 26c753d | 2015-01-14 10:02:55 +0000 | [diff] [blame] | 3 | This package contains a Java 1.8 Parser with AST generation and visitor support.
|
| matozoid | 2cab70d | 2013-09-16 13:31:33 +0200 | [diff] [blame] | 4 | The AST records the source code structure, javadoc and comments.
|
| matozoid | 2d4deca | 2011-10-30 14:35:59 +0100 | [diff] [blame] | 5 |
|
| Nicholas Smith | 26c753d | 2015-01-14 10:02:55 +0000 | [diff] [blame] | 6 | [](https://drone.io/github.com/javaparser/javaparser/latest)
|
| 7 |
|
| Federico Tomassetti | cf8d7b1 | 2014-07-30 19:00:26 +0100 | [diff] [blame] | 8 | ## Use JavaParser in my Maven-based project
|
| 9 |
|
| Nicholas Smith | 15a23ae | 2015-01-14 10:27:51 +0000 | [diff] [blame^] | 10 | Current 1.8 Release
|
| 11 | ```xml
|
| Federico Tomassetti | cf8d7b1 | 2014-07-30 19:00:26 +0100 | [diff] [blame] | 12 | <dependency>
|
| Nicholas Smith | 26c753d | 2015-01-14 10:02:55 +0000 | [diff] [blame] | 13 | <groupId>com.github.javaparser</groupId>
|
| 14 | <artifactId>javaparser-core</artifactId>
|
| 15 | <version>2.0.0</version>
|
| Federico Tomassetti | cf8d7b1 | 2014-07-30 19:00:26 +0100 | [diff] [blame] | 16 | </dependency>
|
| Federico Tomassetti | 2051f04 | 2014-07-30 19:01:19 +0100 | [diff] [blame] | 17 | ```
|
| Federico Tomassetti | cf8d7b1 | 2014-07-30 19:00:26 +0100 | [diff] [blame] | 18 |
|
| Nicholas Smith | 15a23ae | 2015-01-14 10:27:51 +0000 | [diff] [blame^] | 19 | Final 1.7 Release
|
| 20 | ```xml
|
| 21 | <dependency>
|
| 22 | <groupId>com.google.code.javaparser</groupId>
|
| 23 | <artifactId>javaparser</artifactId>
|
| 24 | <version>1.0.11</version>
|
| 25 | </dependency>
|
| 26 | ```
|
| 27 |
|
| 28 |
|
| Federico Tomassetti | cf8d7b1 | 2014-07-30 19:00:26 +0100 | [diff] [blame] | 29 | ## How to build
|
| 30 |
|
| Federico Tomassetti | 2051f04 | 2014-07-30 19:01:19 +0100 | [diff] [blame] | 31 | ```
|
| Federico Tomassetti | cf8d7b1 | 2014-07-30 19:00:26 +0100 | [diff] [blame] | 32 | mvn javacc:javacc
|
| 33 | mvn clean install
|
| Federico Tomassetti | 2051f04 | 2014-07-30 19:01:19 +0100 | [diff] [blame] | 34 | ```
|
| Federico Tomassetti | cf8d7b1 | 2014-07-30 19:00:26 +0100 | [diff] [blame] | 35 |
|
| Nicholas Smith | 26c753d | 2015-01-14 10:02:55 +0000 | [diff] [blame] | 36 | ## Troubleshooting
|
| 37 |
|
| 38 | In the first instance try colsulting the [Wiki](https://github.com/javaparser/javaparser/wiki)
|
| 39 |
|
| 40 | In the second instance please feel free to open an [issue](https://github.com/javaparser/javaparser/issues).
|
| Federico Tomassetti | cf8d7b1 | 2014-07-30 19:00:26 +0100 | [diff] [blame] | 41 |
|
| 42 | ## Javadoc
|
| 43 |
|
| Nicholas Smith | c69265e | 2015-01-14 10:06:23 +0000 | [diff] [blame] | 44 | Javadoc can be found [here](http://javaparser.github.io/javaparser/javadoc-current/)
|
| Federico Tomassetti | cf8d7b1 | 2014-07-30 19:00:26 +0100 | [diff] [blame] | 45 |
|
| 46 | ## History
|
| 47 |
|
| Nicholas Smith | 26c753d | 2015-01-14 10:02:55 +0000 | [diff] [blame] | 48 | This parser is based on Sreenivasa Viswanadha's Java 1.5 parser.
|
| matozoid | 2d4deca | 2011-10-30 14:35:59 +0100 | [diff] [blame] | 49 |
|
| Nicholas Smith | 26c753d | 2015-01-14 10:02:55 +0000 | [diff] [blame] | 50 | The project was originally hosted at [Google Code](http://code.google.com/p/javaparser/), however support there dwindled.
|
| 51 |
|
| 52 | This repository aims to provide support for issues and add the new Java language features.
|
| 53 |
|
| 54 | ## Licence
|
| 55 |
|
| 56 | Offered under the GNU GENERAL PUBLIC LICENSE that can be found [here](https://github.com/javaparser/javaparser/blob/master/COPYING) |