Skip to content

moosetechnology/FAST-JAVA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FAST-JAVA

CI Moose10 CI Moose11

Coverage Status Moose version Moose version

Represent the Java AST with Famix

Installation

To load the FAST-Java project, execute in a playground

Metacello new
  githubUser: 'moosetechnology' project: 'FAST-JAVA' commitish: 'v3' path: 'src';
  baseline: 'FASTJava';
  load

If you want to load the SmaCC importer with the model (create a FAST Java model from string)

Metacello new
  githubUser: 'moosetechnology' project: 'FAST-JAVA' commitish: 'v3' path: 'src';
  baseline: 'FASTJava';
  load: 'all'

Create a FAST-Java Model based on java string

Thanks to the Smacc Project it is easy to parse Java methods and classes. We used a visitor on the parsed java string to create a FAST-Java model.

If you need to create a FAST-Java model from a method or class, the easiest way is thus to perform:

JavaSmaCCProgramNodeImporterVisitor parseCodeMethodString: 'void hello() {
    // My method string
}'

Full documentation

A full documentation is available on modularmoose.org

UML

meta-model image