Class AbstractFinalizer
- java.lang.Object
-
- org.nuiton.jaxx.compiler.finalizers.AbstractFinalizer
-
- All Implemented Interfaces:
JAXXCompilerFinalizer
- Direct Known Subclasses:
ApplyI18nKeysFileFinalizer,DefaultFinalizer,DetectI18nKeyFilesFinalizer,SwingFinalizer,ValidatorFinalizer
public abstract class AbstractFinalizer extends Object implements JAXXCompilerFinalizer
Base implementation of aJAXXCompilerFinalizer. Contains commons methods and constants.- Since:
- 2.4
- Author:
- Tony Chemit - dev@tchemit.fr
-
-
Field Summary
-
Fields inherited from interface org.nuiton.jaxx.compiler.finalizers.JAXXCompilerFinalizer
TYPE_BOOLEAN, TYPE_OBJECT, TYPE_STRING, TYPE_VOID
-
-
Constructor Summary
Constructors Constructor Description AbstractFinalizer()
-
Method Summary
All Methods Instance Methods Concrete Methods 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, 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, wait
-
Methods inherited from interface org.nuiton.jaxx.compiler.finalizers.JAXXCompilerFinalizer
accept, finalizeCompiler, prepareJavaFile
-
-
-
-
Method Detail
-
addField
protected void addField(JavaFile file, JavaField field)
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
protected void addSimpleField(JavaFile file, JavaField field)
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
protected void addMethod(JavaFile file, JavaMethod method, String... types)
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
-
-