| Nicholas Smith | dcee6ce | 2014-09-24 15:27:47 +0100 | [diff] [blame] | 1 | # Java 1.7 japa.parser and Abstract Syntax Tree.
|
| Sebastian Kirsch | f8ed0d2 | 2014-09-10 13:27:13 +0200 | [diff] [blame] | 2 | [](https://drone.io/github.com/matozoid/javaparser)
|
| matozoid | 2cab70d | 2013-09-16 13:31:33 +0200 | [diff] [blame] | 3 |
|
| 4 | Copyright (C) 2007 Júlio Vilmar Gesser
|
| 5 |
|
| 6 | This program is free software: you can redistribute it and/or modify
|
| 7 | it under the terms of the GNU Lesser General Public License as published by
|
| 8 | the Free Software Foundation, either version 3 of the License, or
|
| 9 | (at your option) any later version.
|
| 10 |
|
| 11 | This program is distributed in the hope that it will be useful,
|
| 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
| 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
| 14 | GNU Lesser General Public License for more details.
|
| 15 |
|
| 16 | You should have received a copy of the GNU Lesser General Public License
|
| 17 | along with this program. If not, see <http://www.gnu.org/licenses/>.
|
| matozoid | 2d4deca | 2011-10-30 14:35:59 +0100 | [diff] [blame] | 18 |
|
| Donny Nadolny | 19c2338 | 2013-09-14 14:33:45 -0400 | [diff] [blame] | 19 | This package contains a Java 1.7 Parser with AST generation and visitor support.
|
| matozoid | 2cab70d | 2013-09-16 13:31:33 +0200 | [diff] [blame] | 20 | The AST records the source code structure, javadoc and comments.
|
| matozoid | 2d4deca | 2011-10-30 14:35:59 +0100 | [diff] [blame] | 21 |
|
| Federico Tomassetti | cf8d7b1 | 2014-07-30 19:00:26 +0100 | [diff] [blame] | 22 | ## Use JavaParser in my Maven-based project
|
| 23 |
|
| Federico Tomassetti | 2051f04 | 2014-07-30 19:01:19 +0100 | [diff] [blame] | 24 | ```
|
| Federico Tomassetti | cf8d7b1 | 2014-07-30 19:00:26 +0100 | [diff] [blame] | 25 | <dependency>
|
| 26 | <groupId>com.google.code.javaparser</groupId>
|
| 27 | <artifactId>javaparser</artifactId>
|
| 28 | <version>1.0.11</version>
|
| 29 | </dependency>
|
| Federico Tomassetti | 2051f04 | 2014-07-30 19:01:19 +0100 | [diff] [blame] | 30 | ```
|
| Federico Tomassetti | cf8d7b1 | 2014-07-30 19:00:26 +0100 | [diff] [blame] | 31 |
|
| 32 | ## How to build
|
| 33 |
|
| 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 | mvn javacc:javacc
|
| 36 | mvn clean install
|
| Federico Tomassetti | 2051f04 | 2014-07-30 19:01:19 +0100 | [diff] [blame] | 37 | ```
|
| Federico Tomassetti | cf8d7b1 | 2014-07-30 19:00:26 +0100 | [diff] [blame] | 38 |
|
| 39 | If you have problems, please feel free to open an issue.
|
| 40 |
|
| 41 | ## Javadoc
|
| 42 |
|
| 43 | Javadoc is available at [http://matozoid.github.io/javaparser/javadoc-current/](http://matozoid.github.io/javaparser/javadoc-current/)
|
| 44 |
|
| 45 | ## History
|
| 46 |
|
| Nicholas Smith | dcee6ce | 2014-09-24 15:27:47 +0100 | [diff] [blame] | 47 | This japa.parser is based on Sreenivasa Viswanadha's Java 1.5 japa.parser.
|
| matozoid | 2d4deca | 2011-10-30 14:35:59 +0100 | [diff] [blame] | 48 |
|
| matozoid | 2cab70d | 2013-09-16 13:31:33 +0200 | [diff] [blame] | 49 | The project was originally hosted at http://code.google.com/p/javaparser/ but
|
| 50 | seemed dead. This repository at https://github.com/matozoid/javaparser keeps
|
| 51 | the code alive.
|