Work in progress.
FluentAST and JDT
FLuentast is basically a fancy wrapper around various JDT classes. Really, there’s no point denying it.
This means that pretty much all types in Fluentast have a corresponding type in JDT. For example, the class FluentReturnStatement represents ReturnStatement from JDT. And of course, the syntax tree built using FluentAST is always of type AST. You can have a look at the JDT grammar, that was used for constructing Fluentast here.
To find out how to construct a type you know from JDT using Fluentast check out the API or simply search for it using the search bar above.
You may simply convert the AST created by Fluentast to a String and write it to a file, or leverage additional functionality from JDT.