|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectaspoev.vejal.generator.VejalCompiler
This class creates a Java and Jasmine representation for Vejal types. Vejal types must be compiled prior to instantiation. However, purely procedural code does not need to be compiled, as long as it has no heap storage requirements.
| Field Summary | |
protected static java.lang.String |
directory
|
| Constructor Summary | |
VejalCompiler()
|
|
| Method Summary | |
protected static void |
buildGeneratedObjects(java.lang.String dir)
To be called after all dependent objects are generated from meta-data. |
static void |
buildODQL(java.lang.String dir,
java.lang.String name)
Register the ODQL file with the Jasmine ODQL interpreter. |
static void |
compileList(java.io.File listFile)
Compile a list of Vejal files. |
static java.lang.String |
compileObjectSlice(TypeReferenceElement one,
TypeReferenceElement two)
Creates an object slice for the two types, i.e. |
static ClassDeclarationElement |
createSliceClass(TypeComparator comparator)
|
static void |
main(java.lang.String[] args)
Runs the compiler. |
protected static ClassDeclarationElement |
parseFile(java.io.File file)
|
protected static void |
populateSchema(ClassDeclarationElement classDecl)
|
protected static void |
printHelp()
Prints compiler instructions. |
static void |
processClassDeclaration(ClassDeclarationElement classDecl)
Compile the argument class declaration. |
protected static boolean |
processJavaObject(java.lang.String outputDirectory,
java.lang.String files)
|
protected static void |
registerClass(ClassDeclarationElement decl)
|
static java.lang.String |
renderClass(ClassDeclarationElement decl)
Renders the Vejal class declaration in Java. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static java.lang.String directory
| Constructor Detail |
public VejalCompiler()
| Method Detail |
public static void main(java.lang.String[] args)
protected static void buildGeneratedObjects(java.lang.String dir)
public static void buildODQL(java.lang.String dir,
java.lang.String name)
public static void compileList(java.io.File listFile)
throws java.lang.Exception
java.lang.Exception
public static java.lang.String compileObjectSlice(TypeReferenceElement one,
TypeReferenceElement two)
public static ClassDeclarationElement createSliceClass(TypeComparator comparator)
protected static ClassDeclarationElement parseFile(java.io.File file)
protected static void populateSchema(ClassDeclarationElement classDecl)
public static void processClassDeclaration(ClassDeclarationElement classDecl)
protected static boolean processJavaObject(java.lang.String outputDirectory,
java.lang.String files)
protected static void registerClass(ClassDeclarationElement decl)
public static java.lang.String renderClass(ClassDeclarationElement decl)
protected static void printHelp()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||