Class AbstractFinalizer

    • 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