|
ozone core API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ozoneDB.tools.OPP.srcgen.builder.CompositeBuilder
The composite builder allows building multiple structures in parallel from a single source of direction.
Nested Class Summary |
Nested classes inherited from class org.ozoneDB.tools.OPP.srcgen.ClassBuilder |
ClassBuilder.Parameter |
Field Summary | |
private java.util.Set |
builders
|
Constructor Summary | |
CompositeBuilder()
|
Method Summary | |
void |
addBuilder(ClassBuilder builder)
Adds a builder to the composition |
void |
beginClass(int modifier,
java.lang.String fullName,
java.lang.String superClass,
java.lang.String[] interfaces)
Called for each new class. |
void |
endClass()
Called at the end of each generated class. |
void |
init(MessageWriter msgWriter)
Initializes the builder for each new build. |
void |
makeConstructor(int modifier,
ClassBuilder.Parameter[] parameters,
java.lang.String[] exceptions)
Called for each constructor in the current class |
void |
makeMethod(int modifier,
java.lang.String name,
ClassBuilder.Parameter[] parameters,
java.lang.String returnType,
java.lang.String[] exceptions,
int lockLevel)
Called for each method in the current class |
void |
removeBuilder(ClassBuilder builder)
Removes a builder from the composition |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.util.Set builders
Constructor Detail |
public CompositeBuilder()
Method Detail |
public void init(MessageWriter msgWriter)
ClassBuilder
init
in interface ClassBuilder
msgWriter
- The writer the builder should use to report messages.public void beginClass(int modifier, java.lang.String fullName, java.lang.String superClass, java.lang.String[] interfaces) throws BuilderException
ClassBuilder
beginClass
in interface ClassBuilder
modifier
- The modifiers for this classfullName
- The full name including package path of this classsuperClass
- The full name including package pathh for this classinterfaces
- The interfaces implemented by this class
BuilderException
public void makeConstructor(int modifier, ClassBuilder.Parameter[] parameters, java.lang.String[] exceptions) throws BuilderException
ClassBuilder
makeConstructor
in interface ClassBuilder
modifier
- The modifier for this constructorparameters
- The parameters for this constructorexceptions
- The exceptions thrown by this constructor
BuilderException
public void makeMethod(int modifier, java.lang.String name, ClassBuilder.Parameter[] parameters, java.lang.String returnType, java.lang.String[] exceptions, int lockLevel) throws BuilderException
ClassBuilder
makeMethod
in interface ClassBuilder
modifier
- The modifiers for the methodname
- The name of the methodparameters
- The parameter list for the methodreturnType
- The return type of the method, use null for voidexceptions
- The exceptions thrown by the methodlockLevel
- The lock level for this method
BuilderException
public void endClass() throws BuilderException
ClassBuilder
endClass
in interface ClassBuilder
BuilderException
public void addBuilder(ClassBuilder builder)
builder
- The builder to addpublic void removeBuilder(ClassBuilder builder)
builder
-
|
ozone core API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |