Represent the Java AST with Famix.
To load the FAST-Java project, execute in a playground:
Metacello new
githubUser: 'moosetechnology' project: 'FAST-JAVA' commitish: 'v5' path: 'src';
baseline: 'FASTJava';
loadIf you want to also load the SmaCC importer to create FAST-Java models from strings:
Metacello new
githubUser: 'moosetechnology' project: 'FAST-JAVA' commitish: 'v5' path: 'src';
baseline: 'FASTJava';
load: 'all'Coming from v4? MIGRATION.md lists what v5 changes and what to write instead.
Thanks to the SmaCC project, it is possible to parse Java methods and classes. The easiest way to do that is to use:
JavaSmaCCProgramNodeImporterVisitor parseCodeMethodString: 'void hello() {
// My method string
}'A full documentation is available on modularmoose.org.