Class EditableJavaField

java.lang.Object
com.github.tadukoo.java.field.JavaField
com.github.tadukoo.java.field.EditableJavaField
All Implemented Interfaces:
JavaCodeType, JavaTokens

public class EditableJavaField extends JavaField
Represents a field in Java that can be modified
Since:
Alpha v.0.4
Version:
Beta v.0.6
Author:
Logan Ferree (Tadukoo)
  • Method Details

    • builder

      Returns:
      A new EditableJavaField.EditableJavaFieldBuilder to use to build a new EditableJavaField
    • setJavadoc

      public void setJavadoc(Javadoc javadoc)
      Parameters:
      javadoc - The Javadoc on the field
    • addAnnotation

      public void addAnnotation(JavaAnnotation annotation)
      Parameters:
      annotation - An annotation to add to the field (must be editable)
    • addAnnotations

      public void addAnnotations(List<JavaAnnotation> annotations)
      Parameters:
      annotations - annotations to add to the field (must be editable)
    • setAnnotations

      public void setAnnotations(List<JavaAnnotation> annotations)
      Parameters:
      annotations - The annotations on the field (must be editable)
    • setVisibility

      public void setVisibility(Visibility visibility)
      Parameters:
      visibility - The Visibility of the field
    • setStatic

      public void setStatic(boolean isStatic)
      Parameters:
      isStatic - Whether the field is static or not
    • setFinal

      public void setFinal(boolean isFinal)
      Parameters:
      isFinal - Whether the field is final or not
    • setType

      public void setType(JavaType type)
      Parameters:
      type - The type of the field
    • setType

      public void setType(String typeText)
      Parameters:
      typeText - The text to parse for the type of the field
    • setName

      public void setName(String name)
      Parameters:
      name - The name of the field
    • setValue

      public void setValue(String value)
      Parameters:
      value - The value assigned to the field