Package jaxx.compiler.finalizers
Class AbstractFinalizer
java.lang.Object
jaxx.compiler.finalizers.AbstractFinalizer
- All Implemented Interfaces:
JAXXCompilerFinalizer
- Direct Known Subclasses:
DefaultFinalizer,SwingFinalizer,ValidatorFinalizer
public abstract class AbstractFinalizer extends java.lang.Object implements JAXXCompilerFinalizer
Base implementation of a
JAXXCompilerFinalizer.
Contains commons methods and constants.- Since:
- 2.4
- Author:
- Tony Chemit - chemit@codelutin.com
-
Field Summary
Fields inherited from interface jaxx.compiler.finalizers.JAXXCompilerFinalizer
TYPE_BOOLEAN, TYPE_OBJECT, TYPE_STRING, TYPE_VOID -
Constructor Summary
Constructors Constructor Description AbstractFinalizer() -
Method Summary
Modifier and Type Method Description protected voidaddField(JavaFile file, JavaField field)Clones the givenfieldand adds it to thefileas a property via the methodJavaFile.addField(JavaField).protected voidaddMethod(JavaFile file, JavaMethod method, java.lang.String... types)Clones the givenfieldand adds it to thefileas a simple field using the methodJavaFile.addSimpleField(JavaField).protected voidaddSimpleField(JavaFile file, JavaField field)Clones the givenmethodand adds it to thefileas a simple method using the methodJavaFile.addMethod(JavaMethod).Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jaxx.compiler.finalizers.JAXXCompilerFinalizer
accept, finalizeCompiler, prepareJavaFile
-
Constructor Details
-
AbstractFinalizer
public AbstractFinalizer()
-
-
Method Details
-
addField
Clones the givenfieldand adds it to thefileas a property via the methodJavaFile.addField(JavaField).- Parameters:
file- the file where to add the cloned fieldfield- the field to clone- Since:
- 2.4
-
addSimpleField
Clones the givenmethodand adds it to thefileas a simple method using the methodJavaFile.addMethod(JavaMethod).- Parameters:
file- the file where to add the cloned fieldfield- the field to clone- Since:
- 2.4
-
addMethod
Clones the givenfieldand adds it to thefileas a simple field using the methodJavaFile.addSimpleField(JavaField).- Parameters:
file- the file where to add the cloned methodmethod- the method to clonetypes- optional types to use to simplify the body of the method- Since:
- 2.4
-