java.lang.Object
com.thoughtworks.qdox.parser.structs.LocatedDef
com.thoughtworks.qdox.parser.structs.FieldDef
Used for both fields and parameters
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明getBody()intgetName()getType()booleanbooleanvoidvoidsetDimensions(int dimensions) voidsetEnumConstant(boolean isEnumConstant) voidsetModifiers(Set<String> modifiers) voidvoidvoidsetVarArgs(boolean isVarArgs) 从类继承的方法 com.thoughtworks.qdox.parser.structs.LocatedDef
getColumnNumber, getLineNumber, setColumnNumber, setLineNumber
-
构造器详细资料
-
FieldDef
public FieldDef() -
FieldDef
-
-
方法详细资料
-
setName
- 参数:
name- the name to set
-
getName
- 返回:
- the name
-
setType
- 参数:
type- the type to set
-
getType
- 返回:
- the type
-
setDimensions
public void setDimensions(int dimensions) - 参数:
dimensions- the dimensions to set
-
getDimensions
public int getDimensions()- 返回:
- the dimensions
-
setVarArgs
public void setVarArgs(boolean isVarArgs) - 参数:
isVarArgs- the isVarArgs to set
-
isVarArgs
public boolean isVarArgs()- 返回:
- the isVarArgs
-
setBody
- 参数:
body- the body to set
-
getBody
- 返回:
- the body
-
setModifiers
- 参数:
modifiers- the modifiers to set
-
getModifiers
- 返回:
- the modifiers
-
isEnumConstant
public boolean isEnumConstant()- 返回:
trueif this field is an enum constant, otherwisefalse
-
setEnumConstant
public void setEnumConstant(boolean isEnumConstant) - 参数:
isEnumConstant- value to specify if this field is an enum constant or not
-