Package jaxx.compiler.finalizers
Class SwingFinalizer
java.lang.Object
jaxx.compiler.finalizers.AbstractFinalizer
jaxx.compiler.finalizers.SwingFinalizer
- All Implemented Interfaces:
JAXXCompilerFinalizer
@Component(role=JAXXCompilerFinalizer.class, hint="swing") public class SwingFinalizer extends AbstractFinalizer
- Author:
- Tony Chemit - chemit@codelutin.com
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.commons.logging.LoglogLogger.Fields inherited from interface jaxx.compiler.finalizers.JAXXCompilerFinalizer
TYPE_BOOLEAN, TYPE_OBJECT, TYPE_STRING, TYPE_VOID -
Constructor Summary
Constructors Constructor Description SwingFinalizer() -
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.Methods inherited from class jaxx.compiler.finalizers.AbstractFinalizer
addField, addMethod, addSimpleFieldMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
log
protected static final org.apache.commons.logging.Log logLogger.
-
-
Constructor Details
-
SwingFinalizer
public SwingFinalizer()
-
-
Method Details
-
accept
Description copied from interface:JAXXCompilerFinalizerTest if the finalizer must be apply on the givencompiler.- Parameters:
compiler- the compiler- Returns:
trueif the finalizer must be apply of compiler
-
finalizeCompiler
public void finalizeCompiler(CompiledObject root, JAXXCompiler compiler, JavaFile javaFile, java.lang.String packageName, java.lang.String className)Description copied from interface:JAXXCompilerFinalizerFinalize 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
-
prepareJavaFile
public void prepareJavaFile(CompiledObject root, JAXXCompiler compiler, JavaFile javaFile, java.lang.String packageName, java.lang.String className) throws java.lang.ClassNotFoundExceptionDescription copied from interface:JAXXCompilerFinalizerPrepare 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.ClassNotFoundException
-