blob: 1fbe06c6cb55a723278f37c677673660ed28e822 [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 Smith26c753d2015-01-14 10:02:55 +000010```XML
Federico Tomassetticf8d7b12014-07-30 19:00:26 +010011<dependency>
Nicholas Smith26c753d2015-01-14 10:02:55 +000012 <groupId>com.github.javaparser</groupId>
13 <artifactId>javaparser-core</artifactId>
14 <version>2.0.0</version>
Federico Tomassetticf8d7b12014-07-30 19:00:26 +010015</dependency>
Federico Tomassetti2051f042014-07-30 19:01:19 +010016```
Federico Tomassetticf8d7b12014-07-30 19:00:26 +010017
18## How to build
19
Federico Tomassetti2051f042014-07-30 19:01:19 +010020```
Federico Tomassetticf8d7b12014-07-30 19:00:26 +010021mvn javacc:javacc
22mvn clean install
Federico Tomassetti2051f042014-07-30 19:01:19 +010023```
Federico Tomassetticf8d7b12014-07-30 19:00:26 +010024
Nicholas Smith26c753d2015-01-14 10:02:55 +000025## Troubleshooting
26
27In the first instance try colsulting the [Wiki](https://github.com/javaparser/javaparser/wiki)
28
29In the second instance please feel free to open an [issue](https://github.com/javaparser/javaparser/issues).
Federico Tomassetticf8d7b12014-07-30 19:00:26 +010030
31## Javadoc
32
Nicholas Smithc69265e2015-01-14 10:06:23 +000033Javadoc can be found [here](http://javaparser.github.io/javaparser/javadoc-current/)
Federico Tomassetticf8d7b12014-07-30 19:00:26 +010034
35## History
36
Nicholas Smith26c753d2015-01-14 10:02:55 +000037This parser is based on Sreenivasa Viswanadha's Java 1.5 parser.
matozoid2d4deca2011-10-30 14:35:59 +010038
Nicholas Smith26c753d2015-01-14 10:02:55 +000039The project was originally hosted at [Google Code](http://code.google.com/p/javaparser/), however support there dwindled.
40
41This repository aims to provide support for issues and add the new Java language features.
42
43## Licence
44
45Offered under the GNU GENERAL PUBLIC LICENSE that can be found [here](https://github.com/javaparser/javaparser/blob/master/COPYING)