|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjaxx.compiler.decorators.DefaultCompiledObjectDecorator
public class DefaultCompiledObjectDecorator
The default decorator to use on all compiled objects.
|
| Field Summary | |
|---|---|
protected static org.apache.commons.logging.Log |
log
Logger |
| Constructor Summary | |
|---|---|
DefaultCompiledObjectDecorator()
|
|
| Method Summary | |
|---|---|
protected void |
addClientProperties(CompiledObject object,
java.lang.StringBuffer code,
java.lang.String eol)
|
java.lang.String |
createCompleteSetupMethod(JAXXCompiler compiler,
CompiledObject object,
JavaFile javaFile)
Obtain the setup code of the given object from the compiler to be inject in the generated
method $completeSetup. |
boolean |
createInitializer(JAXXCompiler compiler,
CompiledObject root,
CompiledObject object,
java.lang.StringBuffer code,
boolean lastWasMethodCall)
Create the initializer code for the given compiled object and inject it in the code. |
void |
finalizeCompiler(JAXXCompiler compiler,
CompiledObject root,
CompiledObject object,
JavaFile javaFile,
java.lang.String packageName,
java.lang.String className,
java.lang.String fullClassName)
Finalize the given compiled object before any generation in the file. |
java.lang.String |
getCreationCode(JAXXCompiler compiler,
CompiledObject object)
Obtain the creation code of the given object from the compiler to inject in generate method
$initialize or createXXX in not inline. |
java.lang.String |
getName()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.commons.logging.Log log
| Constructor Detail |
|---|
public DefaultCompiledObjectDecorator()
| Method Detail |
|---|
public java.lang.String getName()
getName in interface CompiledObjectDecorator
public void finalizeCompiler(JAXXCompiler compiler,
CompiledObject root,
CompiledObject object,
JavaFile javaFile,
java.lang.String packageName,
java.lang.String className,
java.lang.String fullClassName)
CompiledObjectDecoratorfile.
finalizeCompiler in interface CompiledObjectDecoratorcompiler - the compiler to useroot - the root compiled object of the jaxx fileobject - the compiled object to treatejavaFile - the file to treatepackageName - the package nameclassName - the (simple ?) class namefullClassName - the fully class name
public java.lang.String getCreationCode(JAXXCompiler compiler,
CompiledObject object)
throws CompilerException
CompiledObjectDecoratorobject from the compiler to inject in generate method
$initialize or createXXX in not inline.
getCreationCode in interface CompiledObjectDecoratorcompiler - the compiler to useobject - the compiled object to treate
CompilerException - if any pb
public java.lang.String createCompleteSetupMethod(JAXXCompiler compiler,
CompiledObject object,
JavaFile javaFile)
CompiledObjectDecoratorobject from the compiler to be inject in the generated
method $completeSetup.
createCompleteSetupMethod in interface CompiledObjectDecoratorcompiler - the compiler to useobject - the compiled object to treatejavaFile - the file to treate
public boolean createInitializer(JAXXCompiler compiler,
CompiledObject root,
CompiledObject object,
java.lang.StringBuffer code,
boolean lastWasMethodCall)
CompiledObjectDecoratorobject and inject it in the code.
createInitializer in interface CompiledObjectDecoratorcompiler - the compiler to useroot - the root compiled object of the jaxx fileobject - the compiled object to treatecode - where to store code to injectlastWasMethodCall - true if last instruction call was a method call
true if the last instruction was a method call
protected void addClientProperties(CompiledObject object,
java.lang.StringBuffer code,
java.lang.String eol)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||