This content has been marked as final. Show 3 replies
There are several ways to do that:
and descend manually.
Iterable<? extends CompilationUnitTree> treeList = javacTaskImpl.parse()
class MyTreeScanner extends TreeScanner<Void, Void>
and override the visit* Methods.
CompilationUnitTree.accept(new MyTreeScanner(), null);
3. Use Eclpse AST parser. I not tried that yet. There has to be some in JDT, because several Plugins use AST.
Edited by: 804562 on 22.10.2010 15:20