Fluentast is a fluent API to create abstract syntax trees for Java. Getting started is simple.
Install Fluentast using either Maven or Gradle.
You may then use Fluentast to create a syntax tree.
The example below demonstrates how to build a simple code snippet can be built using JDT Core or Fluentast.
You can find additional examples in the in the demo project on Github.
For more information regarding the Fluentast syntax have a look at the syntax page or at the API