Skip to content
This repository was archived by the owner on Jan 8, 2020. It is now read-only.

Commit f70d57c

Browse files
committed
initial experiment
0 parents  commit f70d57c

16 files changed

+1317
-0
lines changed

CNAME

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
javaparser.org

images/body-bg.jpg

2.23 KB
Loading

images/download-button.png

26.5 KB
Loading

images/github-button.png

1.51 KB
Loading

images/header-bg.jpg

9.24 KB
Loading

images/highlight-bg.jpg

30.3 KB
Loading

images/logo.png

8.05 KB
Loading

images/sidebar-bg.jpg

2.22 KB
Loading

index.html

+173
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,173 @@
1+
<!DOCTYPE html>
2+
<html lang="en-us">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>JavaParser by javaparser</title>
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
<link rel="stylesheet" type="text/css" href="stylesheets/normalize.css" media="screen">
8+
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
9+
<link rel="stylesheet" type="text/css" href="stylesheets/stylesheet.css" media="screen">
10+
<link rel="stylesheet" type="text/css" href="stylesheets/github-light.css" media="screen">
11+
<link href="https://fonts.googleapis.com/css?family=Courgette" rel="stylesheet">
12+
</head>
13+
<body>
14+
<section class="page-header" >
15+
<h1 class="project-name title-font">JavaParser</h1>
16+
<!--<h2 class="project-tagline">Process Java code programmatically</h2>-->
17+
</section>
18+
19+
<section class="main-content">
20+
<h2>
21+
<a id="java-parser-and-abstract-syntax-tree" class="anchor" href="#java-parser-and-abstract-syntax-tree" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Java Parser and Abstract Syntax Tree</h2>
22+
23+
<p>JavaParser is a set of tools to:
24+
<ul>
25+
<li>parse
26+
<li>analyze
27+
<li>transform
28+
<li>generate
29+
</ul>
30+
Java code
31+
</p>
32+
33+
<h2 class="project-tagline">A set of tools to parse, analyze, transform and generate Java code</h2>
34+
35+
<p>This package contains a Java 1.8 Parser with AST generation and visitor support.</p>
36+
37+
<p>The AST records the source code structure.
38+
You can analyze source code for any purpose.
39+
It is possible to change the AST nodes or create new ones to modify the source code.</p>
40+
41+
<p>When you need not only the text from the source code but you also need type information,
42+
you can use <a href="https://github.com/javaparser/javasymbolsolver">the Java Symbol Solver project.</a></p>
43+
44+
<p><a href="http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.github.javaparser%22%20AND%20a%3A%22javaparser-core%22"><img src="https://img.shields.io/maven-central/v/com.github.javaparser/javaparser-core.svg" alt="Maven Central"></a>
45+
<a href="https://travis-ci.org/javaparser/javaparser"><img src="https://travis-ci.org/javaparser/javaparser.svg?branch=master" alt="Build Status"></a>
46+
<a href="https://coveralls.io/github/javaparser/javaparser?branch=master"><img src="https://coveralls.io/repos/javaparser/javaparser/badge.svg?branch=master&amp;service=github" alt="Coverage Status"></a>
47+
<a href="https://gitter.im/javaparser/javaparser?utm_source=badge&amp;utm_medium=badge&amp;utm_campaign=pr-badge&amp;utm_content=badge"><img src="https://badges.gitter.im/Join%20Chat.svg" alt="Join the chat at https://gitter.im/javaparser/javaparser"></a></p>
48+
49+
<h2>
50+
<a id="features" class="anchor" href="#features" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Features</h2>
51+
52+
<ul>
53+
<li> Light weight</li>
54+
<li> Performant</li>
55+
<li> Easy to use</li>
56+
<li> Modifiable AST</li>
57+
<li> Code generation</li>
58+
<li> Support of comments</li>
59+
</ul>
60+
61+
<h2>
62+
<a id="dependency-management" class="anchor" href="#dependency-management" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Dependency Management</h2>
63+
64+
<p>The project binaries are available in Maven Central. Just add the following to your maven configuration or tailor to your own dependency management system.</p>
65+
66+
<p>Suggested version (many fixes, new features, and mostly stable API):</p>
67+
68+
<div class="highlight highlight-text-xml"><pre>&lt;<span class="pl-ent">dependency</span>&gt;
69+
&lt;<span class="pl-ent">groupId</span>&gt;com.github.javaparser&lt;/<span class="pl-ent">groupId</span>&gt;
70+
&lt;<span class="pl-ent">artifactId</span>&gt;javaparser-core&lt;/<span class="pl-ent">artifactId</span>&gt;
71+
&lt;<span class="pl-ent">version</span>&gt;3.0.0-RC.1&lt;/<span class="pl-ent">version</span>&gt;
72+
&lt;/<span class="pl-ent">dependency</span>&gt;</pre></div>
73+
74+
<p>Current production release:</p>
75+
76+
<div class="highlight highlight-text-xml"><pre>&lt;<span class="pl-ent">dependency</span>&gt;
77+
&lt;<span class="pl-ent">groupId</span>&gt;com.github.javaparser&lt;/<span class="pl-ent">groupId</span>&gt;
78+
&lt;<span class="pl-ent">artifactId</span>&gt;javaparser-core&lt;/<span class="pl-ent">artifactId</span>&gt;
79+
&lt;<span class="pl-ent">version</span>&gt;2.5.1&lt;/<span class="pl-ent">version</span>&gt;
80+
&lt;/<span class="pl-ent">dependency</span>&gt;</pre></div>
81+
82+
<h2>
83+
<a id="how-to-compile-sources" class="anchor" href="#how-to-compile-sources" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>How To Compile Sources</h2>
84+
85+
<p>If you have checkout the project from GitHub you can build the project with maven using:</p>
86+
87+
<pre><code>mvn clean install
88+
</code></pre>
89+
90+
<p>If you checkout the sources and want to view the project in an IDE, it is best to first generate some of the source files; otherwise you will get many compilation complaints in the IDE. (mvn clean install already does this for you.)</p>
91+
92+
<pre><code>mvn javacc:javacc
93+
</code></pre>
94+
95+
<h2>
96+
<a id="manual" class="anchor" href="#manual" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Manual</h2>
97+
98+
<p>Examples of how to use the library can be found on the <a href="https://github.com/javaparser/javaparser/wiki/Manual">Manual</a> page of the wiki</p>
99+
100+
<h2>
101+
<a id="troubleshooting" class="anchor" href="#troubleshooting" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Troubleshooting</h2>
102+
103+
<p>First try the <a href="https://github.com/javaparser/javaparser/wiki">wiki</a>.</p>
104+
105+
<p>Didn't find an answer? Try <a href="https://github.com/javaparser/javaparser/issues?utf8=%E2%9C%93&amp;q=is%3Aissue%20">searching for existing issues</a></p>
106+
107+
<p>Still nothing? <a href="https://github.com/javaparser/javaparser/issues/new">Open an issue</a> or <a href="https://gitter.im/javaparser/javaparser">come chat on Gitter</a></p>
108+
109+
<h2>
110+
<a id="javadoc" class="anchor" href="#javadoc" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Javadoc</h2>
111+
112+
<p>The libraries javadoc can be found <a href="http://www.javadoc.io/doc/com.github.javaparser/javaparser-core/">here</a></p>
113+
114+
<h2>
115+
<a id="history" class="anchor" href="#history" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>History</h2>
116+
117+
<p>This parser is based on work by Sreenivasa Viswanadha and Júlio Vilmar Gesser. The original project, now inactive, was originally hosted at <a href="http://code.google.com/p/javaparser/">Google Code</a> and supported only parsing Java 1.5.</p>
118+
119+
<p>The project now supports parsing Java 1.8 and aims to continue support for features in future versions of the Java language.</p>
120+
121+
<h2>
122+
<a id="related-projects" class="anchor" href="#related-projects" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Related projects</h2>
123+
124+
<p><a href="https://github.com/javaparser/javasymbolsolver">JavaSymbolSolver</a> is a project from the same committers working on JavaParser.
125+
You can use it to calculate the type of JavaParser expressions and connecting references with their declarations. </p>
126+
127+
<p>From JavaParser other projects have been derived:</p>
128+
129+
<ul>
130+
<li>
131+
<a href="http://walkmod.com/">Walkmod</a>: a tool to automatically correct violations of code conventions</li>
132+
<li>
133+
<a href="http://jooby.org/doc/spec">jooby spec</a>: analyze and exports <a href="http://jooby.org">jooby routes</a> to <a href="http://raml.org">raml</a> and <a href="http://swagger.io">Swagger</a>
134+
</li>
135+
</ul>
136+
137+
<h2>
138+
<a id="credits" class="anchor" href="#credits" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Credits</h2>
139+
140+
<p>This project has been maintained thanks to the joint efforts of many contributors: we are extremely grateful to all of them.</p>
141+
142+
<p>In particular we are thankful to the contributions we received by the <a href="http://walkmod.com/">Walkmod</a> project which permitted to finalize support for Java 8. The author granted us the permissions to release that code also under the Apache License and we have greatly appreciated that.</p>
143+
144+
<h2>
145+
<a id="license" class="anchor" href="#license" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>License</h2>
146+
147+
<p>JavaParser is available either under the terms of the LGPL License or the Apache License. You as the user are entitled to choose the terms under which adopt JavaParser.</p>
148+
149+
<p>For details about the LGPL License please refer to LICENSE.LGPL.</p>
150+
151+
<p>For details about the Apache License please refer to LICENSE.APACHE.</p>
152+
153+
<footer class="site-footer">
154+
<span class="site-footer-owner"><a href="https://github.com/javaparser/javaparser">JavaParser</a> is maintained by <a href="https://github.com/javaparser">javaparser</a>.</span>
155+
156+
<span class="site-footer-credits">This page was generated by <a href="https://pages.github.com">GitHub Pages</a> using the <a href="https://github.com/jasonlong/cayman-theme">Cayman theme</a> by <a href="https://twitter.com/jasonlong">Jason Long</a>.</span>
157+
</footer>
158+
159+
</section>
160+
161+
<script type="text/javascript">
162+
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
163+
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
164+
</script>
165+
<script type="text/javascript">
166+
try {
167+
var pageTracker = _gat._getTracker("UA-41747754-5");
168+
pageTracker._trackPageview();
169+
} catch(err) {}
170+
</script>
171+
172+
</body>
173+
</html>

javascripts/main.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
console.log('This would be the main JS file.');

params.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "JavaParser",
3+
"tagline": "Java Parser and Abstract Syntax Tree",
4+
"body": "## Java Parser and Abstract Syntax Tree\r\n\r\nThis package contains a Java 1.8 Parser with AST generation and visitor support.\r\n\r\nThe AST records the source code structure.\r\nYou can analyze source code for any purpose.\r\nIt is possible to change the AST nodes or create new ones to modify the source code.\r\n\r\nWhen you need not only the text from the source code but you also need type information,\r\nyou can use [the Java Symbol Solver project.](https://github.com/javaparser/javasymbolsolver)\r\n\r\n[![Maven Central](https://img.shields.io/maven-central/v/com.github.javaparser/javaparser-core.svg)](http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.github.javaparser%22%20AND%20a%3A%22javaparser-core%22)\r\n[![Build Status](https://travis-ci.org/javaparser/javaparser.svg?branch=master)](https://travis-ci.org/javaparser/javaparser)\r\n[![Coverage Status](https://coveralls.io/repos/javaparser/javaparser/badge.svg?branch=master&service=github)](https://coveralls.io/github/javaparser/javaparser?branch=master)\r\n[![Join the chat at https://gitter.im/javaparser/javaparser](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/javaparser/javaparser?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)\r\n\r\n## Features\r\n\r\n* Light weight\r\n* Performant\r\n* Easy to use\r\n* Modifiable AST\r\n* Code generation\r\n* Support of comments\r\n\r\n## Dependency Management\r\n\r\nThe project binaries are available in Maven Central. Just add the following to your maven configuration or tailor to your own dependency management system.\r\n\r\nSuggested version (many fixes, new features, and mostly stable API):\r\n```xml\r\n<dependency>\r\n <groupId>com.github.javaparser</groupId>\r\n <artifactId>javaparser-core</artifactId>\r\n <version>3.0.0-RC.1</version>\r\n</dependency>\r\n```\r\n\r\nCurrent production release:\r\n\r\n```xml\r\n<dependency>\r\n <groupId>com.github.javaparser</groupId>\r\n <artifactId>javaparser-core</artifactId>\r\n <version>2.5.1</version>\r\n</dependency>\r\n```\r\n\r\n## How To Compile Sources\r\n\r\nIf you have checkout the project from GitHub you can build the project with maven using:\r\n\r\n```\r\nmvn clean install\r\n```\r\n\r\nIf you checkout the sources and want to view the project in an IDE, it is best to first generate some of the source files; otherwise you will get many compilation complaints in the IDE. (mvn clean install already does this for you.)\r\n\r\n```\r\nmvn javacc:javacc\r\n```\r\n\r\n## Manual\r\n\r\nExamples of how to use the library can be found on the [Manual](https://github.com/javaparser/javaparser/wiki/Manual) page of the wiki\r\n\r\n## Troubleshooting\r\n\r\nFirst try the [wiki](https://github.com/javaparser/javaparser/wiki).\r\n\r\nDidn't find an answer? Try [searching for existing issues](https://github.com/javaparser/javaparser/issues?utf8=%E2%9C%93&q=is%3Aissue%20)\r\n\r\nStill nothing? [Open an issue](https://github.com/javaparser/javaparser/issues/new) or [come chat on Gitter](https://gitter.im/javaparser/javaparser)\r\n\r\n## Javadoc\r\n\r\nThe libraries javadoc can be found [here](http://www.javadoc.io/doc/com.github.javaparser/javaparser-core/)\r\n\r\n## History\r\n\r\nThis parser is based on work by Sreenivasa Viswanadha and Júlio Vilmar Gesser. The original project, now inactive, was originally hosted at [Google Code](http://code.google.com/p/javaparser/) and supported only parsing Java 1.5.\r\n\r\nThe project now supports parsing Java 1.8 and aims to continue support for features in future versions of the Java language.\r\n\r\n## Related projects\r\n\r\n[JavaSymbolSolver](https://github.com/javaparser/javasymbolsolver) is a project from the same committers working on JavaParser.\r\nYou can use it to calculate the type of JavaParser expressions and connecting references with their declarations. \r\n\r\nFrom JavaParser other projects have been derived:\r\n\r\n* [Walkmod](http://walkmod.com/): a tool to automatically correct violations of code conventions\r\n* [jooby spec](http://jooby.org/doc/spec): analyze and exports [jooby routes](http://jooby.org) to [raml](http://raml.org) and [Swagger](http://swagger.io)\r\n\r\n## Credits\r\n\r\nThis project has been maintained thanks to the joint efforts of many contributors: we are extremely grateful to all of them.\r\n\r\nIn particular we are thankful to the contributions we received by the [Walkmod](http://walkmod.com/) project which permitted to finalize support for Java 8. The author granted us the permissions to release that code also under the Apache License and we have greatly appreciated that.\r\n\r\n## License\r\n\r\nJavaParser is available either under the terms of the LGPL License or the Apache License. You as the user are entitled to choose the terms under which adopt JavaParser.\r\n\r\nFor details about the LGPL License please refer to [LICENSE.LGPL](ttps://github.com/javaparser/javaparser/blob/master/LICENSE.LGPL).\r\n\r\nFor details about the Apache License please refer to [LICENSE.APACHE](ttps://github.com/javaparser/javaparser/blob/master/LICENSE.APACHE).\r\n",
5+
"google": "UA-41747754-5",
6+
"note": "Don't delete this file! It's used internally to help with page regeneration."
7+
}

stylesheets/github-light.css

+124
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
/*
2+
The MIT License (MIT)
3+
4+
Copyright (c) 2016 GitHub, Inc.
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy
7+
of this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in all
14+
copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
SOFTWARE.
23+
24+
*/
25+
26+
.pl-c /* comment */ {
27+
color: #969896;
28+
}
29+
30+
.pl-c1 /* constant, variable.other.constant, support, meta.property-name, support.constant, support.variable, meta.module-reference, markup.raw, meta.diff.header */,
31+
.pl-s .pl-v /* string variable */ {
32+
color: #0086b3;
33+
}
34+
35+
.pl-e /* entity */,
36+
.pl-en /* entity.name */ {
37+
color: #795da3;
38+
}
39+
40+
.pl-smi /* variable.parameter.function, storage.modifier.package, storage.modifier.import, storage.type.java, variable.other */,
41+
.pl-s .pl-s1 /* string source */ {
42+
color: #333;
43+
}
44+
45+
.pl-ent /* entity.name.tag */ {
46+
color: #63a35c;
47+
}
48+
49+
.pl-k /* keyword, storage, storage.type */ {
50+
color: #a71d5d;
51+
}
52+
53+
.pl-s /* string */,
54+
.pl-pds /* punctuation.definition.string, string.regexp.character-class */,
55+
.pl-s .pl-pse .pl-s1 /* string punctuation.section.embedded source */,
56+
.pl-sr /* string.regexp */,
57+
.pl-sr .pl-cce /* string.regexp constant.character.escape */,
58+
.pl-sr .pl-sre /* string.regexp source.ruby.embedded */,
59+
.pl-sr .pl-sra /* string.regexp string.regexp.arbitrary-repitition */ {
60+
color: #183691;
61+
}
62+
63+
.pl-v /* variable */ {
64+
color: #ed6a43;
65+
}
66+
67+
.pl-id /* invalid.deprecated */ {
68+
color: #b52a1d;
69+
}
70+
71+
.pl-ii /* invalid.illegal */ {
72+
color: #f8f8f8;
73+
background-color: #b52a1d;
74+
}
75+
76+
.pl-sr .pl-cce /* string.regexp constant.character.escape */ {
77+
font-weight: bold;
78+
color: #63a35c;
79+
}
80+
81+
.pl-ml /* markup.list */ {
82+
color: #693a17;
83+
}
84+
85+
.pl-mh /* markup.heading */,
86+
.pl-mh .pl-en /* markup.heading entity.name */,
87+
.pl-ms /* meta.separator */ {
88+
font-weight: bold;
89+
color: #1d3e81;
90+
}
91+
92+
.pl-mq /* markup.quote */ {
93+
color: #008080;
94+
}
95+
96+
.pl-mi /* markup.italic */ {
97+
font-style: italic;
98+
color: #333;
99+
}
100+
101+
.pl-mb /* markup.bold */ {
102+
font-weight: bold;
103+
color: #333;
104+
}
105+
106+
.pl-md /* markup.deleted, meta.diff.header.from-file */ {
107+
color: #bd2c00;
108+
background-color: #ffecec;
109+
}
110+
111+
.pl-mi1 /* markup.inserted, meta.diff.header.to-file */ {
112+
color: #55a532;
113+
background-color: #eaffea;
114+
}
115+
116+
.pl-mdr /* meta.diff.range */ {
117+
font-weight: bold;
118+
color: #795da3;
119+
}
120+
121+
.pl-mo /* meta.output */ {
122+
color: #1d3e81;
123+
}
124+

0 commit comments

Comments
 (0)