- 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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBody()
int
getDimensions()
Set<String>
getModifiers()
String
getName()
TypeDef
getType()
boolean
isEnumConstant()
boolean
isVarArgs()
void
setBody(String body)
void
setDimensions(int dimensions)
void
setEnumConstant(boolean isEnumConstant)
void
setModifiers(Set<String> modifiers)
void
setName(String name)
void
setType(TypeDef type)
void
setVarArgs(boolean isVarArgs)
-
Methods inherited from class com.thoughtworks.qdox.parser.structs.LocatedDef
getColumnNumber, getLineNumber, setColumnNumber, setLineNumber
-
-
-
-
Constructor Detail
-
FieldDef
public FieldDef()
-
FieldDef
public FieldDef(String name)
-
-
Method Detail
-
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
-
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
-
-