Interface JAXXCompilerFinalizer
-
- All Known Implementing Classes:
AbstractFinalizer,ApplyI18nKeysFileFinalizer,DefaultFinalizer,DetectI18nKeyFilesFinalizer,SwingFinalizer,ValidatorFinalizer
public interface JAXXCompilerFinalizerContract of any object to interact with aJAXXCompilerbefore the generation pass.- Since:
- 2.0.0
- Author:
- Tony Chemit - dev@tchemit.fr
-
-
Field Summary
Fields Modifier and Type Field Description static StringTYPE_BOOLEANstatic StringTYPE_OBJECTstatic StringTYPE_STRINGstatic StringTYPE_VOID
-
Method Summary
All Methods Instance Methods Abstract Methods 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, String packageName, String className)Finalize compiler for a given compiler on the finalizer pass before any generation.voidprepareJavaFile(CompiledObject root, JAXXCompiler compiler, JavaFile javaFile, String packageName, String className)Prepare java file after any compiler finalizer pass, says the last action before generation.
-
-
-
Field Detail
-
TYPE_STRING
static final String TYPE_STRING
- See Also:
- Constant Field Values
-
TYPE_VOID
static final String TYPE_VOID
- See Also:
- Constant Field Values
-
TYPE_BOOLEAN
static final String TYPE_BOOLEAN
- See Also:
- Constant Field Values
-
TYPE_OBJECT
static final String TYPE_OBJECT
- See Also:
- Constant Field Values
-
-
Method Detail
-
accept
boolean accept(JAXXCompiler compiler)
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, String packageName, String className) throws Exception
Finalize 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:
Exception- if any pb
-
prepareJavaFile
void prepareJavaFile(CompiledObject root, JAXXCompiler compiler, JavaFile javaFile, String packageName, String className) throws Exception
Prepare 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:
Exception- if any pb
-
-