|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CompiledObjectDecorator
Contract of compiled object decorator at generation time.
Note : The implementation of this class must be stateless.
| Method Summary | |
|---|---|
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,
StringBuilder 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,
String packageName,
String className,
String fullClassName)
Finalize the given compiled object before any generation in the file. |
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. |
String |
getName()
|
| Method Detail |
|---|
String getName()
String createCompleteSetupMethod(JAXXCompiler compiler,
CompiledObject object,
JavaFile javaFile)
object from the
compiler to be inject in the generated method
$completeSetup.
compiler - the compiler to useobject - the compiled object to treatejavaFile - the file to treate
boolean createInitializer(JAXXCompiler compiler,
CompiledObject root,
CompiledObject object,
StringBuilder code,
boolean lastWasMethodCall)
object and
inject it in the code.
compiler - 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
void finalizeCompiler(JAXXCompiler compiler,
CompiledObject root,
CompiledObject object,
JavaFile javaFile,
String packageName,
String className,
String fullClassName)
throws ClassNotFoundException
file.
compiler - 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
ClassNotFoundException - if a class is not found
String getCreationCode(JAXXCompiler compiler,
CompiledObject object)
throws CompilerException
object from the compiler to inject in generate method
$initialize or createXXX in not inline.
compiler - the compiler to useobject - the compiled object to treate
CompilerException - if any pb
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||