| 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 | 26c753d | 2015-01-14 10:02:55 +0000 | [diff] [blame] | 10 | ```XML
|
| Federico Tomassetti | cf8d7b1 | 2014-07-30 19:00:26 +0100 | [diff] [blame] | 11 | <dependency>
|
| Nicholas Smith | 26c753d | 2015-01-14 10:02:55 +0000 | [diff] [blame] | 12 | <groupId>com.github.javaparser</groupId>
|
| 13 | <artifactId>javaparser-core</artifactId>
|
| 14 | <version>2.0.0</version>
|
| Federico Tomassetti | cf8d7b1 | 2014-07-30 19:00:26 +0100 | [diff] [blame] | 15 | </dependency>
|
| Federico Tomassetti | 2051f04 | 2014-07-30 19:01:19 +0100 | [diff] [blame] | 16 | ```
|
| Federico Tomassetti | cf8d7b1 | 2014-07-30 19:00:26 +0100 | [diff] [blame] | 17 |
|
| 18 | ## How to build
|
| 19 |
|
| Federico Tomassetti | 2051f04 | 2014-07-30 19:01:19 +0100 | [diff] [blame] | 20 | ```
|
| Federico Tomassetti | cf8d7b1 | 2014-07-30 19:00:26 +0100 | [diff] [blame] | 21 | mvn javacc:javacc
|
| 22 | mvn clean install
|
| Federico Tomassetti | 2051f04 | 2014-07-30 19:01:19 +0100 | [diff] [blame] | 23 | ```
|
| Federico Tomassetti | cf8d7b1 | 2014-07-30 19:00:26 +0100 | [diff] [blame] | 24 |
|
| Nicholas Smith | 26c753d | 2015-01-14 10:02:55 +0000 | [diff] [blame] | 25 | ## Troubleshooting
|
| 26 |
|
| 27 | In the first instance try colsulting the [Wiki](https://github.com/javaparser/javaparser/wiki)
|
| 28 |
|
| 29 | 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] | 30 |
|
| 31 | ## Javadoc
|
| 32 |
|
| Nicholas Smith | c69265e | 2015-01-14 10:06:23 +0000 | [diff] [blame^] | 33 | Javadoc can be found [here](http://javaparser.github.io/javaparser/javadoc-current/)
|
| Federico Tomassetti | cf8d7b1 | 2014-07-30 19:00:26 +0100 | [diff] [blame] | 34 |
|
| 35 | ## History
|
| 36 |
|
| Nicholas Smith | 26c753d | 2015-01-14 10:02:55 +0000 | [diff] [blame] | 37 | This parser is based on Sreenivasa Viswanadha's Java 1.5 parser.
|
| matozoid | 2d4deca | 2011-10-30 14:35:59 +0100 | [diff] [blame] | 38 |
|
| Nicholas Smith | 26c753d | 2015-01-14 10:02:55 +0000 | [diff] [blame] | 39 | The project was originally hosted at [Google Code](http://code.google.com/p/javaparser/), however support there dwindled.
|
| 40 |
|
| 41 | This repository aims to provide support for issues and add the new Java language features.
|
| 42 |
|
| 43 | ## Licence
|
| 44 |
|
| 45 | Offered under the GNU GENERAL PUBLIC LICENSE that can be found [here](https://github.com/javaparser/javaparser/blob/master/COPYING) |