Question
How to generate AST from Java source-code?
As far as I know, the only way to parse Java source-code into an AST (Abstract Syntax Tree) is to use the Java Compiler Tree API: com.sun.source.tree
I have two questions:
- What JDKs support com.sun.source.tree?
- Is there a portable replacement that works for all JDKs?
45 48062
45