Skip to content

jgralab/java-extractor

Repository files navigation

The Java-Extractor Project

TODO under construction This projects contains an extractor for converting the complete java sources to abstract syntax graphs.

Building JEx

The project structure should be like this:

jgsrc/               # your jgralab workspace (the name doesn't matter)
+-> jgralab/         # jgralab itself
+-> edl/             # the EDL project (extractor description language)
`-> java-extractor/  # this project

Before building java-extractor, be sure to build jgralab, and edl. Thereafter, build JEx:

$ pwd
/path/to/jgsrc/
$ cd java-extractor
$ ant
...
BUILD SUCCESSFUL

Using Java-Extractor

To parse your java source files, you can either use the jex.sh script or invoke java from the command line. JEx uses reflection for type resolution, so be sure to put the class files compiled from you source files including all dependencies into CLASSPATH.

$ CLASSPATH="foo.jar:bar.jar" ./jex.sh -o my-asg.tg src/**/*.java

For more options, check out ./jex.sh --help.

The Schema

The type hierarchy

Type Hierarchy

Classifiers and extends/implements

Classifiers and extends/implements

Array types

Array types

Members

Members

Methods

Methods

Modifieable and typed elements

Modifiable and types elements

Generics

Generics

License

Copyright (C) 2007-2012 The JGraLab Team [email protected]

Distributed under the GNU General Public License (Version 3 or later), with the following additional grant:

Additional permission under GNU GPL version 3 section 7

If you modify this Program, or any covered work, by linking or combining it
with Eclipse (or a modified version of that program or an Eclipse plugin),
containing parts covered by the terms of the Eclipse Public License (EPL),
the licensors of this Program grant you additional permission to convey the
resulting work.  Corresponding Source for a non-source form of such a
combination shall include the source code for the parts of JGraLab used as
well as that of the covered work.

About

A complete Java Extractor implemented using EDL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages