|
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.MethodNameUpgradingClassBuilderDecorator
User: Jocke Date: 2004-jan-04 Time: 14:21:57
Nested Class Summary |
Nested classes inherited from class org.ozoneDB.tools.OPP.srcgen.ClassBuilder |
ClassBuilder.Parameter |
Field Summary | |
private ClassBuilder |
classBuilder
|
private MessageWriter |
msgWriter
|
private java.util.regex.Pattern |
updateMethodPattern
|
Constructor Summary | |
MethodNameUpgradingClassBuilderDecorator(ClassBuilder classBuilder,
java.lang.String updateMethodExpression)
|
Method Summary | |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private ClassBuilder classBuilder
private MessageWriter msgWriter
private java.util.regex.Pattern updateMethodPattern
Constructor Detail |
public MethodNameUpgradingClassBuilderDecorator(ClassBuilder classBuilder, java.lang.String updateMethodExpression)
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
|
ozone core API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |