java.lang.Object
com.thoughtworks.qdox.model.impl.AbstractJavaModel
com.thoughtworks.qdox.model.impl.AbstractBaseJavaEntity
com.thoughtworks.qdox.model.impl.AbstractJavaEntity
com.thoughtworks.qdox.model.impl.DefaultJavaField
- 所有已实现的接口:
JavaAnnotatedElement,JavaField,JavaMember,JavaModel,Serializable
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明booleanCompares this Field against the specified object.The in-code representation of this field.Get the original expression used to initialize the field.getType()Equivalent ofField.getType()inthashCode()booleanEquivalent ofField.isEnumConstant()booleanisFinal()Equivalent ofModifier.isFinal(int)booleanisPublic()Equivalent ofModifier.isPublic(int)booleanisStatic()Equivalent ofModifier.isStatic(int)voidsetEnumConstant(boolean enumConstant) voidsetEnumConstantArguments(List<Expression> enumConstantArguments) voidsetEnumConstantClass(JavaClass enumConstantClass) voidsetInitializationExpression(String initializationExpression) voidtoString()从类继承的方法 com.thoughtworks.qdox.model.impl.AbstractJavaEntity
getDeclaringClass, getModifiers, getName, isAbstract, isNative, isPrivate, isProtected, isStrictfp, isSynchronized, isTransient, isVolatile, setDeclaringClass, setModifiers, setName从类继承的方法 com.thoughtworks.qdox.model.impl.AbstractBaseJavaEntity
getAnnotations, getComment, getNamedParameter, getSource, getTagByName, getTags, getTagsByName, setAnnotations, setComment, setSource, setTags从类继承的方法 com.thoughtworks.qdox.model.impl.AbstractJavaModel
getLineNumber, getModelWriter, setLineNumber, setModelWriterFactory从接口继承的方法 com.thoughtworks.qdox.model.JavaAnnotatedElement
getAnnotations, getComment, getNamedParameter, getTagByName, getTags, getTagsByName从接口继承的方法 com.thoughtworks.qdox.model.JavaMember
getDeclaringClass, getModifiers, getName, isAbstract, isNative, isPrivate, isProtected, isStrictfp, isSynchronized, isTransient, isVolatile从接口继承的方法 com.thoughtworks.qdox.model.JavaModel
getLineNumber
-
构造器详细资料
-
DefaultJavaField
-
DefaultJavaField
-
-
方法详细资料
-
getType
Equivalent ofField.getType() -
getCodeBlock
The in-code representation of this field.- 指定者:
getCodeBlock在接口中JavaField- 指定者:
getCodeBlock在接口中JavaModel- 返回:
- the complete representation of this field
-
setType
-
getInitializationExpression
Get the original expression used to initialize the field.- 指定者:
getInitializationExpression在接口中JavaField- 返回:
- initialization as string.
-
setInitializationExpression
-
isEnumConstant
public boolean isEnumConstant()Equivalent ofField.isEnumConstant()- 指定者:
isEnumConstant在接口中JavaField- 返回:
trueif this field is an enum constant, otherwisefalse
-
setEnumConstant
public void setEnumConstant(boolean enumConstant) -
getEnumConstantArguments
- 指定者:
getEnumConstantArguments在接口中JavaField- 返回:
- the arguments of the enum constant
-
setEnumConstantArguments
-
getEnumConstantClass
- 指定者:
getEnumConstantClass在接口中JavaField- 返回:
- the classBody of the enum constant
-
setEnumConstantClass
-
toString
-
equals
Compares this Field against the specified object. Returnstrueif the objects are the same. Two Field objects are the same if they were declared by the same class and have the same name and type. -
hashCode
public int hashCode() -
isStatic
public boolean isStatic()从类复制的说明:AbstractJavaEntityEquivalent ofModifier.isStatic(int)- 指定者:
isStatic在接口中JavaMember- 覆盖:
isStatic在类中AbstractJavaEntity- 返回:
trueif entity is static, otherwisefalse
-
isFinal
public boolean isFinal()从类复制的说明:AbstractJavaEntityEquivalent ofModifier.isFinal(int)- 指定者:
isFinal在接口中JavaMember- 覆盖:
isFinal在类中AbstractJavaEntity- 返回:
trueif entity is final, otherwisefalse
-
isPublic
public boolean isPublic()从类复制的说明:AbstractJavaEntityEquivalent ofModifier.isPublic(int)- 指定者:
isPublic在接口中JavaMember- 覆盖:
isPublic在类中AbstractJavaEntity- 返回:
trueif entity is public, otherwisefalse
-