|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.sahits.codegen.generator.AbstractGenerator
ch.sahits.codegen.generator.JETGateway
ch.sahits.codegen.java.generator.jettemplate.AbstractJETTemplateGenerator
ch.sahits.codegen.java.generator.ast.AbstractJETASTGenerator
public abstract class AbstractJETASTGenerator
This abstract class provides you with the basic methods to generate a Class from a JET template and improve it with AST
| Field Summary | |
|---|---|
protected Document |
document
Document on which the modifications are made |
protected IGeneratedJavaDBClass |
model
Java database class model |
protected CompilationUnit |
unit
The compilation unit that will be generated |
| Fields inherited from class ch.sahits.codegen.java.generator.jettemplate.AbstractJETTemplateGenerator |
|---|
jetTemplateFile |
| Constructor Summary | |
|---|---|
AbstractJETASTGenerator()
Default constructor. |
|
| Method Summary | |
|---|---|
protected void |
addImports()
This is a null implementation since this classes are not needed in the class hierarchy from here on down. |
void |
cleanup()
Execute the cleanup defined in the super class. |
protected abstract JETGateway |
createJetGenerator()
Create a feasable JET generator |
java.lang.String |
generate()
Generate the code |
protected abstract void |
generateASTCode()
This methods adds the AST parts to the code |
protected void |
generateTemplate()
This is a null implementation since this classes are not needed in the class hierarchy from here on down. |
abstract void |
setBaseClass(java.lang.String baseClass)
|
| Methods inherited from class ch.sahits.codegen.java.generator.jettemplate.AbstractJETTemplateGenerator |
|---|
addImport, addJetPluginID2Builder, append, appendLn, generate, init, writeDirective |
| Methods inherited from class ch.sahits.codegen.generator.JETGateway |
|---|
getJETEmitter, getWorkload, init, isInitialized, setMonitor |
| Methods inherited from class ch.sahits.codegen.generator.AbstractGenerator |
|---|
createIfNull, findOrCreateContainer, getConfig, save, setConfig |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ch.sahits.codegen.generator.IGenerator |
|---|
getConfig, save |
| Field Detail |
|---|
protected Document document
protected IGeneratedJavaDBClass model
protected CompilationUnit unit
| Constructor Detail |
|---|
public AbstractJETASTGenerator()
| Method Detail |
|---|
public final void cleanup()
throws CoreException
AbstractJETTemplateGenerator
cleanup in interface IGeneratorcleanup in class AbstractJETTemplateGeneratorCoreExceptionAbstractJETTemplateGenerator.cleanup()protected abstract JETGateway createJetGenerator()
JETGatewaypublic final java.lang.String generate()
generate in interface IBaseGeneratorgenerate in class JETGatewayprotected abstract void generateASTCode()
public abstract void setBaseClass(java.lang.String baseClass)
baseClass - the baseClass to setprotected final void addImports()
addImports in class AbstractJETTemplateGeneratorprotected final void generateTemplate()
generateTemplate in class AbstractJETTemplateGenerator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||