jaxx.compiler.finalizers
Class AbstractFinalizer

java.lang.Object
  extended by jaxx.compiler.finalizers.AbstractFinalizer
All Implemented Interfaces:
JAXXCompilerFinalizer
Direct Known Subclasses:
DefaultFinalizer, SwingFinalizer, ValidatorFinalizer

public abstract class AbstractFinalizer
extends Object
implements JAXXCompilerFinalizer

Base implementation of a JAXXCompilerFinalizer.

Contains commons methods and constants.

Since:
2.4
Author:
tchemit

Field Summary
 
Fields inherited from interface jaxx.compiler.finalizers.JAXXCompilerFinalizer
TYPE_BOOLEAN, TYPE_OBJECT, TYPE_STRING, TYPE_VOID
 
Constructor Summary
AbstractFinalizer()
           
 
Method Summary
protected  void addField(JavaFile file, JavaField field)
          Clones the given field and adds it to the file as a property via the method JavaFile.addField(JavaField).
protected  void addMethod(JavaFile file, JavaMethod method, String... types)
          Clones the given field and adds it to the file as a simple field using the method JavaFile.addSimpleField(JavaField).
protected  void addSimpleField(JavaFile file, JavaField field)
          Clones the given method and adds it to the file as a simple method using the method JavaFile.addMethod(JavaMethod).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jaxx.compiler.finalizers.JAXXCompilerFinalizer
accept, finalizeCompiler, prepareJavaFile
 

Constructor Detail

AbstractFinalizer

public AbstractFinalizer()
Method Detail

addField

protected void addField(JavaFile file,
                        JavaField field)
Clones the given field and adds it to the file as a property via the method JavaFile.addField(JavaField).

Parameters:
file - the file where to add the cloned field
field - the field to clone
Since:
2.4

addSimpleField

protected void addSimpleField(JavaFile file,
                              JavaField field)
Clones the given method and adds it to the file as a simple method using the method JavaFile.addMethod(JavaMethod).

Parameters:
file - the file where to add the cloned field
field - the field to clone
Since:
2.4

addMethod

protected void addMethod(JavaFile file,
                         JavaMethod method,
                         String... types)
Clones the given field and adds it to the file as a simple field using the method JavaFile.addSimpleField(JavaField).

Parameters:
file - the file where to add the cloned method
method - the method to clone
types - optional types to use to simplify the body of the method
Since:
2.4


Copyright © 2008-2011 CodeLutin. All Rights Reserved.