Package jaxx.compiler.finalizers
Interface JAXXCompilerFinalizer
- All Known Implementing Classes:
AbstractFinalizer,DefaultFinalizer,SwingFinalizer,ValidatorFinalizer
public interface JAXXCompilerFinalizer
Contract of any object to interact with a
JAXXCompiler before the
generation pass.- Since:
- 2.0.0
- Author:
- Tony Chemit - chemit@codelutin.com
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringTYPE_BOOLEANstatic java.lang.StringTYPE_OBJECTstatic java.lang.StringTYPE_STRINGstatic java.lang.StringTYPE_VOID -
Method Summary
Modifier and Type Method Description booleanaccept(JAXXCompiler compiler)Test if the finalizer must be apply on the givencompiler.voidfinalizeCompiler(CompiledObject root, JAXXCompiler compiler, JavaFile javaFile, java.lang.String packageName, java.lang.String className)Finalize compiler for a given compiler on the finalizer pass before any generation.voidprepareJavaFile(CompiledObject root, JAXXCompiler compiler, JavaFile javaFile, java.lang.String packageName, java.lang.String className)Prepare java file after any compiler finalizer pass, says the last action before generation.
-
Field Details
-
TYPE_STRING
static final java.lang.String TYPE_STRING- See Also:
- Constant Field Values
-
TYPE_VOID
static final java.lang.String TYPE_VOID- See Also:
- Constant Field Values
-
TYPE_BOOLEAN
static final java.lang.String TYPE_BOOLEAN- See Also:
- Constant Field Values
-
TYPE_OBJECT
static final java.lang.String TYPE_OBJECT- See Also:
- Constant Field Values
-
-
Method Details
-
accept
Test if the finalizer must be apply on the givencompiler.- Parameters:
compiler- the compiler- Returns:
trueif the finalizer must be apply of compiler
-
finalizeCompiler
void finalizeCompiler(CompiledObject root, JAXXCompiler compiler, JavaFile javaFile, java.lang.String packageName, java.lang.String className) throws java.lang.ExceptionFinalize compiler for a given compiler on the finalizer pass before any generation.- Parameters:
root- the root objectcompiler- the current compilerjavaFile- the java file to generatepackageName- the package name of the file to generateclassName- the class name of the file to generate- Throws:
java.lang.Exception- if any pb
-
prepareJavaFile
void prepareJavaFile(CompiledObject root, JAXXCompiler compiler, JavaFile javaFile, java.lang.String packageName, java.lang.String className) throws java.lang.ExceptionPrepare java file after any compiler finalizer pass, says the last action before generation.- Parameters:
root- the root objectcompiler- the current compilerjavaFile- the java file to generatepackageName- the package name of the file to generateclassName- the class name of the file to generate- Throws:
java.lang.Exception- if any pb
-