The JEx Project
This projects contains an extractor for converting java sources down to signature level to abstract syntax graphs.
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) `-> jex/ # this project
Before building JEx, be sure to build jgralab, and edl. Thereafter, build JEx:
$ pwd /path/to/jgsrc/ $ cd jex $ ant ... BUILD SUCCESSFUL
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
The type hierarchy
Classifiers and extends/implements
Modifieable and typed elements
Copyright (C) 2007-2012 The JGraLab Team firstname.lastname@example.org
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.