Class FieldDef

java.lang.Object
com.thoughtworks.qdox.parser.structs.LocatedDef
com.thoughtworks.qdox.parser.structs.FieldDef

public class FieldDef extends LocatedDef
Used for both fields and parameters
  • Field Details

    • name

      private String name
    • type

      private TypeDef type
    • modifiers

      private Set<String> modifiers
    • dimensions

      private int dimensions
    • isVarArgs

      private boolean isVarArgs
    • isEnumConstant

      private boolean isEnumConstant
    • body

      private String body
  • Constructor Details

    • FieldDef

      public FieldDef()
    • FieldDef

      public FieldDef(String name)
  • Method Details

    • setName

      public void setName(String name)
      Parameters:
      name - the name to set
    • getName

      public String getName()
      Returns:
      the name
    • setType

      public void setType(TypeDef type)
      Parameters:
      type - the type to set
    • getType

      public TypeDef getType()
      Returns:
      the type
    • setDimensions

      public void setDimensions(int dimensions)
      Parameters:
      dimensions - the dimensions to set
    • getDimensions

      public int getDimensions()
      Returns:
      the dimensions
    • setVarArgs

      public void setVarArgs(boolean isVarArgs)
      Parameters:
      isVarArgs - the isVarArgs to set
    • isVarArgs

      public boolean isVarArgs()
      Returns:
      the isVarArgs
    • setBody

      public void setBody(String body)
      Parameters:
      body - the body to set
    • getBody

      public String getBody()
      Returns:
      the body
    • setModifiers

      public void setModifiers(Set<String> modifiers)
      Parameters:
      modifiers - the modifiers to set
    • getModifiers

      public Set<String> getModifiers()
      Returns:
      the modifiers
    • isEnumConstant

      public boolean isEnumConstant()
      Returns:
      true if this field is an enum constant, otherwise false
    • setEnumConstant

      public void setEnumConstant(boolean isEnumConstant)
      Parameters:
      isEnumConstant - value to specify if this field is an enum constant or not