Class FieldDef
java.lang.Object
com.thoughtworks.qdox.parser.structs.LocatedDef
com.thoughtworks.qdox.parser.structs.FieldDef
Used for both fields and parameters
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBody()
int
getName()
getType()
boolean
boolean
void
void
setDimensions
(int dimensions) void
setEnumConstant
(boolean isEnumConstant) void
setModifiers
(Set<String> modifiers) void
void
void
setVarArgs
(boolean isVarArgs) Methods inherited from class com.thoughtworks.qdox.parser.structs.LocatedDef
getColumnNumber, getLineNumber, setColumnNumber, setLineNumber
-
Field Details
-
name
-
type
-
modifiers
-
dimensions
private int dimensions -
isVarArgs
private boolean isVarArgs -
isEnumConstant
private boolean isEnumConstant -
body
-
-
Constructor Details
-
FieldDef
public FieldDef() -
FieldDef
-
-
Method Details
-
setName
- Parameters:
name
- the name to set
-
getName
- Returns:
- the name
-
setType
- Parameters:
type
- the type to set
-
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
- Parameters:
body
- the body to set
-
getBody
- Returns:
- the body
-
setModifiers
- Parameters:
modifiers
- the modifiers to set
-
getModifiers
- Returns:
- the modifiers
-
isEnumConstant
public boolean isEnumConstant()- Returns:
true
if this field is an enum constant, otherwisefalse
-
setEnumConstant
public void setEnumConstant(boolean isEnumConstant) - Parameters:
isEnumConstant
- value to specify if this field is an enum constant or not
-