Package com.thoughtworks.qdox.model.impl
Class DefaultJavaField
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
- All Implemented Interfaces:
JavaAnnotatedElement,JavaField,JavaMember,JavaModel,Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate List<Expression> private JavaClassprivate Stringprivate JavaClass -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompares 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()voidsetEnumConstant(boolean enumConstant) voidsetEnumConstantArguments(List<Expression> enumConstantArguments) voidsetEnumConstantClass(JavaClass enumConstantClass) voidsetInitializationExpression(String initializationExpression) voidtoString()Methods inherited from class com.thoughtworks.qdox.model.impl.AbstractJavaEntity
getDeclaringClass, getModifiers, getName, isAbstract, isFinal, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVolatile, setDeclaringClass, setModifiers, setNameMethods inherited from class com.thoughtworks.qdox.model.impl.AbstractBaseJavaEntity
getAnnotations, getComment, getNamedParameter, getSource, getTagByName, getTags, getTagsByName, setAnnotations, setComment, setSource, setTagsMethods inherited from class com.thoughtworks.qdox.model.impl.AbstractJavaModel
getLineNumber, getModelWriter, setLineNumber, setModelWriterFactoryMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.thoughtworks.qdox.model.JavaAnnotatedElement
getAnnotations, getComment, getNamedParameter, getTagByName, getTags, getTagsByNameMethods inherited from interface com.thoughtworks.qdox.model.JavaMember
getDeclaringClass, getModifiers, getName, isAbstract, isFinal, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVolatileMethods inherited from interface com.thoughtworks.qdox.model.JavaModel
getLineNumber
-
Field Details
-
type
-
initializationExpression
-
enumConstant
private boolean enumConstant -
enumConstantClass
-
enumConstantArguments
-
-
Constructor Details
-
DefaultJavaField
-
DefaultJavaField
-
-
Method Details
-
getType
Equivalent ofField.getType() -
getCodeBlock
The in-code representation of this field.- Specified by:
getCodeBlockin interfaceJavaField- Specified by:
getCodeBlockin interfaceJavaModel- Returns:
- the complete representation of this field
-
setType
-
getInitializationExpression
Get the original expression used to initialize the field.- Specified by:
getInitializationExpressionin interfaceJavaField- Returns:
- initialization as string.
-
setInitializationExpression
-
isEnumConstant
public boolean isEnumConstant()Equivalent ofField.isEnumConstant()- Specified by:
isEnumConstantin interfaceJavaField- Returns:
trueif this field is an enum constant, otherwisefalse
-
setEnumConstant
public void setEnumConstant(boolean enumConstant) -
getEnumConstantArguments
- Specified by:
getEnumConstantArgumentsin interfaceJavaField- Returns:
- the arguments of the enum constant
-
setEnumConstantArguments
-
getEnumConstantClass
- Specified by:
getEnumConstantClassin interfaceJavaField- Returns:
- 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()
-