|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjaxx.compiler.finalizers.DefaultFinalizer
public class DefaultFinalizer
This class is a refactoring of the JAXXCompiler.
JAXXObject to this class, the
JAXXCompiler now only deals with the compilation of files.
|
| Constructor Summary | |
|---|---|
DefaultFinalizer()
|
|
| Method Summary | |
|---|---|
boolean |
accept(JAXXCompiler compiler)
Test if the finalizer must be apply on the given compiler. |
protected void |
addEventHandlers(JAXXCompiler compiler,
JavaFile javaFile)
|
protected void |
addPropertyChangeSupport(CompiledObject root,
JavaFile javaFile)
|
protected JavaMethod |
createApplyDataBindingMethod()
|
protected JavaMethod |
createCompleteSetupMethod(JAXXCompiler compiler,
JavaFile javaFile)
|
protected JavaMethod |
createConstructor(JAXXCompiler compiler,
java.lang.String className,
boolean superclassIsJAXXObject)
|
protected JavaMethod |
createConstructorWithInitialContext(JAXXCompiler compiler,
java.lang.String className,
boolean superclassIsJAXXObject)
|
protected java.lang.String |
createInitBindingsCode(JAXXCompiler compiler)
|
JavaMethod |
createInitializer(JAXXCompiler compiler,
int nbBindings)
|
protected JavaField |
createJAXXObjectDescriptorField(JAXXCompiler compiler,
JavaFile javaFile)
|
protected JavaMethod |
createProcessDataBindingMethod()
|
protected JavaMethod |
createRegisterDefaultBindingsMethod(JAXXCompiler compiler)
|
protected JavaMethod |
createRemoveDataBindingMethod()
|
void |
finalizeCompiler(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. |
void |
prepareJavaFile(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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.commons.logging.Log log
public static final java.lang.String FIELD_NAME_$BINDING_SOURCES
public static final java.lang.String FIELD_NAME_$OBJECT_MAP
public static final java.lang.String FIELD_NAME_$ACTIVE_BINDINGS
public static final java.lang.String FIELD_NAME_ALL_COMPONENTS_CREATED
public static final java.lang.String FIELD_NAME_CONTEXT_INITIALIZED
public static final java.lang.String FIELD_NAME_$PREVIOUS_VALUES
public static final java.lang.String FIELD_NAME_$BINDINGS
public static final java.lang.String FIELD_NAME_$PROPERTY_CHANGE_SUPPORT
public static final java.lang.String FIELD_NAME_DELEGATE_CONTEXT
public static final java.lang.String FIELD_NAME_SERIAL_VERSION_UID
public static final java.lang.String FIELD_NAME_$JAXX_OBJECT_DESCRIPTOR
public static final java.lang.String METHOD_NAME_$GET_JAXXOBJECT_DESCRIPTOR
public static final java.lang.String METHOD_NAME_$REGISTER_DEFAULT_BINDINGS
public static final java.lang.String METHOD_NAME_REGISTER_DATA_BINDING
public static final java.lang.String METHOD_NAME_REMOVE_DATA_BINDING
public static final java.lang.String METHOD_NAME_APPLY_DATA_BINDING
public static final java.lang.String METHOD_NAME_PROCESS_DATA_BINDING
public static final java.lang.String METHOD_NAME_FIRE_PROPERTY_CHANGE
public static final java.lang.String METHOD_NAME_$GET_PROPERTY_CHANGE_SUPPORT
public static final java.lang.String METHOD_NAME_$INITIALIZE
public static final java.lang.String METHOD_NAME_$COMPLETE_SETUP
public static final java.lang.String METHOD_NAME_$AFTER_COMPLETE_SETUP
public static final java.lang.String TYPE_STRING
public static final java.lang.String TYPE_VOID
public static final java.lang.String TYPE_BOOLEAN
public static final java.lang.String TYPE_OBJECT
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_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 static final JAXXBindingWriter<?>[] bindingWriters
| Constructor Detail |
|---|
public DefaultFinalizer()
| Method Detail |
|---|
public boolean accept(JAXXCompiler compiler)
JAXXCompilerFinalizercompiler.
accept in interface JAXXCompilerFinalizercompiler - the compiler
true if the finalizer must be apply of compiler
public void finalizeCompiler(CompiledObject root,
JAXXCompiler compiler,
JavaFile javaFile,
java.lang.String packageName,
java.lang.String className)
JAXXCompilerFinalizer
finalizeCompiler in interface 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 generate
public void prepareJavaFile(CompiledObject root,
JAXXCompiler compiler,
JavaFile javaFile,
java.lang.String packageName,
java.lang.String className)
throws java.lang.ClassNotFoundException
JAXXCompilerFinalizer
prepareJavaFile in interface 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 generate
java.lang.ClassNotFoundExceptionprotected JavaMethod createRegisterDefaultBindingsMethod(JAXXCompiler compiler)
protected JavaField createJAXXObjectDescriptorField(JAXXCompiler compiler,
JavaFile javaFile)
protected void addPropertyChangeSupport(CompiledObject root,
JavaFile javaFile)
protected void addEventHandlers(JAXXCompiler compiler,
JavaFile javaFile)
protected JavaMethod createConstructor(JAXXCompiler compiler,
java.lang.String className,
boolean superclassIsJAXXObject)
throws CompilerException
CompilerException
protected JavaMethod createConstructorWithInitialContext(JAXXCompiler compiler,
java.lang.String className,
boolean superclassIsJAXXObject)
throws CompilerException
CompilerException
public JavaMethod createInitializer(JAXXCompiler compiler,
int nbBindings)
throws CompilerException
CompilerException
protected JavaMethod createCompleteSetupMethod(JAXXCompiler compiler,
JavaFile javaFile)
protected java.lang.String createInitBindingsCode(JAXXCompiler compiler)
protected JavaMethod createApplyDataBindingMethod()
protected JavaMethod createRemoveDataBindingMethod()
protected JavaMethod createProcessDataBindingMethod()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||