public class DefaultFinalizer extends AbstractFinalizer
JAXXCompiler.
We delegate now the generation of a JAXXObject to this class, the
JAXXCompiler now only deals with the compilation of files.
|
TYPE_BOOLEAN, TYPE_OBJECT, TYPE_STRING, TYPE_VOID| Constructor and Description |
|---|
DefaultFinalizer() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(JAXXCompiler compiler)
Test if the finalizer must be apply on the given
compiler. |
protected JavaMethod |
addCompleteSetupMethod(JAXXCompiler compiler,
JavaFile javaFile) |
protected void |
addConstructors(JAXXCompiler compiler,
JavaFile javaFile,
String className) |
protected void |
addDataBindings(JAXXCompiler compiler,
JavaFile javaFile,
DataBinding[] bindings) |
protected void |
addEventHandlers(JAXXCompiler compiler,
JavaFile javaFile) |
JavaMethod |
addInitializerMethod(JAXXCompiler compiler,
JavaFile javaFile,
int nbBindings) |
protected JavaField |
addJAXXObjectDescriptorField(JAXXCompiler compiler,
JavaFile javaFile) |
protected void |
addJAXXObjectSupport(JAXXCompiler compiler,
CompiledObject root,
JavaFile javaFile) |
protected void |
addLoggerSupport(JAXXCompiler compiler,
JavaFile javaFile,
String className) |
protected void |
addPreviousValuesField(JAXXCompiler compiler,
JavaFile javaFile,
CompiledObject root) |
protected void |
addPropertyChangeSupport(CompiledObject root,
JavaFile javaFile) |
protected JavaMethod |
addRegisteredDefaultBindingsMethod(JAXXCompiler compiler,
JavaFile javaFile) |
protected JavaMethod |
createApplyDataBindingMethod() |
protected JavaMethod |
createConstructor(JAXXCompiler compiler,
String className,
boolean superclassIsJAXXObject) |
protected JavaMethod |
createConstructorWithInitialContext(JAXXCompiler compiler,
String className,
boolean superclassIsJAXXObject) |
protected String |
createInitBindingsCode(JAXXCompiler compiler) |
protected JavaMethod |
createProcessDataBindingMethod() |
protected JavaMethod |
createRemoveDataBindingMethod() |
void |
finalizeCompiler(CompiledObject root,
JAXXCompiler compiler,
JavaFile javaFile,
String packageName,
String className)
Finalize compiler for a given compiler on the finalizer pass before any
generation.
|
void |
prepareJavaFile(CompiledObject root,
JAXXCompiler compiler,
JavaFile javaFile,
String packageName,
String className)
Prepare java file after any compiler finalizer pass, says the last
action before generation.
|
addField, addMethod, addSimpleFieldprotected static final org.apache.commons.logging.Log log
public static final String FIELD_NAME_$BINDING_SOURCES
public static final String FIELD_NAME_$OBJECT_MAP
public static final String FIELD_NAME_$ACTIVE_BINDINGS
public static final String FIELD_NAME_ALL_COMPONENTS_CREATED
public static final String FIELD_NAME_CONTEXT_INITIALIZED
public static final String FIELD_NAME_$PREVIOUS_VALUES
public static final String FIELD_NAME_$BINDINGS
public static final String FIELD_NAME_$PROPERTY_CHANGE_SUPPORT
public static final String FIELD_NAME_DELEGATE_CONTEXT
public static final String FIELD_NAME_SERIAL_VERSION_UID
public static final String FIELD_NAME_$JAXX_OBJECT_DESCRIPTOR
public static final String METHOD_NAME_$GET_JAXXOBJECT_DESCRIPTOR
public static final String METHOD_NAME_$REGISTER_DEFAULT_BINDINGS
public static final String METHOD_NAME_REGISTER_DATA_BINDING
public static final String METHOD_NAME_REMOVE_DATA_BINDING
public static final String METHOD_NAME_APPLY_DATA_BINDING
public static final String METHOD_NAME_PROCESS_DATA_BINDING
public static final String METHOD_NAME_FIRE_PROPERTY_CHANGE
public static final String METHOD_NAME_$GET_PROPERTY_CHANGE_SUPPORT
public static final String METHOD_NAME_$INITIALIZE
public static final String METHOD_NAME_$COMPLETE_SETUP
public static final String METHOD_NAME_$AFTER_COMPLETE_SETUP
protected static final JavaField SERIAL_VERSION_UID_FIELD
protected static final JavaField ACTIVE_BINDINGS_FIELD
protected static final JavaField BINDING_SOURCES_FIELD
protected static final JavaField OBJECT_MAP_FIELD
protected static final JavaField ALL_COMPONENTS_CREATED_FIELD
protected static final JavaField CONTEXT_INITIALIZED
protected static final JavaField PREVIOUS_VALUES_FIELD
protected static final JavaField BINDINGS_FIELD
protected static final JavaField PROPERTY_CHANGE_SUPPORT_FIELD
protected static final JavaMethod GET_CONTEXT_VALUE_METHOD
protected static final JavaMethod GET_CONTEXT_VALUE_NAMED_METHOD
protected static final JavaMethod SET_CONTEXT_VALUE_NAMED_METHOD
protected static final JavaMethod SET_CONTEXT_VALUE_METHOD
protected static final JavaMethod REMOVE_CONTEXT_VALUE_NAMED_METHOD
protected static final JavaMethod REMOVE_CONTEXT_VALUE_METHOD
protected static final JavaMethod GET_PARENT_CONTAINER_MORE_METHOD
protected static final JavaMethod GET_PARENT_CONTAINER_METHOD
protected static final JavaMethod GET_OBJECT_BY_ID_METHOD
protected static final JavaMethod GET_JAXX_OBJECT_DESCRIPTOR_METHOD
protected static final JavaMethod PROCESS_DATA_BINDING_METHOD
protected static final JavaMethod REGISTER_DATA_BINDING_METHOD
protected static final JavaMethod GET_DATA_BINDINGS_METHOD
protected static final JavaMethod GET_DATA_BINDING_METHOD
protected static final JavaMethod FIRE_PROPERTY_CHANGE_METHOD
protected static final JavaMethod FIRE_PROPERTY_CHANGE_NAMED_METHOD
protected static final JavaMethod GET_PROPERTY_CHANGE_SUPPORT_METHOD
protected static final JavaMethod ADD_PROPERTY_CHANGE_SUPPORT_METHOD
protected static final JavaMethod ADD_PROPERTY_CHANGE_SUPPORT_NAMED_METHOD
protected static final JavaMethod REMOVE_PROPERTY_CHANGE_SUPPORT_METHOD
protected static final JavaMethod REMOVE_PROPERTY_CHANGE_SUPPORT_NAMED_METHOD
protected final JAXXBindingWriter<?>[] bindingWriters
public boolean accept(JAXXCompiler compiler)
JAXXCompilerFinalizercompiler.compiler - the compilertrue if the finalizer must be apply of compilerpublic void finalizeCompiler(CompiledObject root, JAXXCompiler compiler, JavaFile javaFile, String packageName, String className) throws ClassNotFoundException
JAXXCompilerFinalizerroot - 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 generateClassNotFoundExceptionpublic void prepareJavaFile(CompiledObject root, JAXXCompiler compiler, JavaFile javaFile, String packageName, String className) throws ClassNotFoundException
JAXXCompilerFinalizerroot - 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 generateClassNotFoundExceptionprotected void addDataBindings(JAXXCompiler compiler, JavaFile javaFile, DataBinding[] bindings)
protected void addConstructors(JAXXCompiler compiler, JavaFile javaFile, String className)
protected void addJAXXObjectSupport(JAXXCompiler compiler, CompiledObject root, JavaFile javaFile)
protected void addLoggerSupport(JAXXCompiler compiler, JavaFile javaFile, String className)
protected JavaField addJAXXObjectDescriptorField(JAXXCompiler compiler, JavaFile javaFile)
protected void addPreviousValuesField(JAXXCompiler compiler, JavaFile javaFile, CompiledObject root)
protected void addPropertyChangeSupport(CompiledObject root, JavaFile javaFile)
protected JavaMethod addRegisteredDefaultBindingsMethod(JAXXCompiler compiler, JavaFile javaFile)
protected void addEventHandlers(JAXXCompiler compiler, JavaFile javaFile)
protected JavaMethod createConstructor(JAXXCompiler compiler, String className, boolean superclassIsJAXXObject) throws CompilerException
CompilerExceptionprotected JavaMethod createConstructorWithInitialContext(JAXXCompiler compiler, String className, boolean superclassIsJAXXObject) throws CompilerException
CompilerExceptionpublic JavaMethod addInitializerMethod(JAXXCompiler compiler, JavaFile javaFile, int nbBindings) throws CompilerException
CompilerExceptionprotected JavaMethod addCompleteSetupMethod(JAXXCompiler compiler, JavaFile javaFile)
protected String createInitBindingsCode(JAXXCompiler compiler)
protected JavaMethod createApplyDataBindingMethod()
protected JavaMethod createRemoveDataBindingMethod()
protected JavaMethod createProcessDataBindingMethod()
Copyright © 2008-2013 CodeLutin. All Rights Reserved.