blob: ee191e2d9a3a1864f708fa7d7c52ce6b073c7c2c [file] [log] [blame] [view]
Nicholas Smith26c753d2015-01-14 10:02:55 +00001# Java Parser and Abstract Syntax Tree for Java 8.
matozoid2cab70d2013-09-16 13:31:33 +02002
Nicholas Smith26c753d2015-01-14 10:02:55 +00003This package contains a Java 1.8 Parser with AST generation and visitor support.
matozoid2cab70d2013-09-16 13:31:33 +02004The AST records the source code structure, javadoc and comments.
matozoid2d4deca2011-10-30 14:35:59 +01005
Nicholas Smith26c753d2015-01-14 10:02:55 +00006[![Build Status](https://drone.io/github.com/javaparser/javaparser/status.png)](https://drone.io/github.com/javaparser/javaparser/latest)
7
Federico Tomassetticf8d7b12014-07-30 19:00:26 +01008## Use JavaParser in my Maven-based project
9
Nicholas Smith15a23ae2015-01-14 10:27:51 +000010Current 1.8 Release
11```xml
Federico Tomassetticf8d7b12014-07-30 19:00:26 +010012<dependency>
Nicholas Smith26c753d2015-01-14 10:02:55 +000013 <groupId>com.github.javaparser</groupId>
14 <artifactId>javaparser-core</artifactId>
15 <version>2.0.0</version>
Federico Tomassetticf8d7b12014-07-30 19:00:26 +010016</dependency>
Federico Tomassetti2051f042014-07-30 19:01:19 +010017```
Federico Tomassetticf8d7b12014-07-30 19:00:26 +010018
Nicholas Smith15a23ae2015-01-14 10:27:51 +000019Final 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 Tomassetticf8d7b12014-07-30 19:00:26 +010029## How to build
30
Federico Tomassetti2051f042014-07-30 19:01:19 +010031```
Federico Tomassetticf8d7b12014-07-30 19:00:26 +010032mvn javacc:javacc
33mvn clean install
Federico Tomassetti2051f042014-07-30 19:01:19 +010034```
Federico Tomassetticf8d7b12014-07-30 19:00:26 +010035
Nicholas Smith26c753d2015-01-14 10:02:55 +000036## Troubleshooting
37
38In the first instance try colsulting the [Wiki](https://github.com/javaparser/javaparser/wiki)
39
40In the second instance please feel free to open an [issue](https://github.com/javaparser/javaparser/issues).
Federico Tomassetticf8d7b12014-07-30 19:00:26 +010041
42## Javadoc
43
Nicholas Smithc69265e2015-01-14 10:06:23 +000044Javadoc can be found [here](http://javaparser.github.io/javaparser/javadoc-current/)
Federico Tomassetticf8d7b12014-07-30 19:00:26 +010045
46## History
47
Nicholas Smith26c753d2015-01-14 10:02:55 +000048This parser is based on Sreenivasa Viswanadha's Java 1.5 parser.
matozoid2d4deca2011-10-30 14:35:59 +010049
Nicholas Smith26c753d2015-01-14 10:02:55 +000050The project was originally hosted at [Google Code](http://code.google.com/p/javaparser/), however support there dwindled.
51
52This repository aims to provide support for issues and add the new Java language features.
53
54## Licence
55
56Offered under the GNU GENERAL PUBLIC LICENSE that can be found [here](https://github.com/javaparser/javaparser/blob/master/COPYING)