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
  • Constructor Details

    • AbstractFinalizer

      public AbstractFinalizer()
  • Method Details

    • 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, java.lang.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