[Soot-list] AST Help.

Eric Bodden bodden at st.informatik.tu-darmstadt.de
Wed Feb 17 09:15:29 EST 2010


> I am looking for an AST for Java source code.

Ok, in that case, the following lines will give you the JastAdd-based
AST for a compilation unit:

Program program = SootResolver.v().getProgram();
CompilationUnit u = program.getCachedOrLoadCompilationUnit(fullPath);

Eric


More information about the Soot-list mailing list