Package com.thoughtworks.qdox.model
Interface JavaField
- All Superinterfaces:
JavaAnnotatedElement,JavaMember,JavaModel,Serializable
- All Known Implementing Classes:
DefaultJavaField
-
Method Summary
Modifier and TypeMethodDescriptionThe in-code representation of this field.Get the original expression used to initialize the field.getType()Equivalent ofField.getType()booleanEquivalent ofField.isEnumConstant()Methods 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
-
Method Details
-
getType
JavaClass getType()Equivalent ofField.getType()- Returns:
- the type of this field, should never be
null.
-
getCodeBlock
String getCodeBlock()The in-code representation of this field.- Specified by:
getCodeBlockin interfaceJavaModel- Returns:
- the complete representation of this field
-
getInitializationExpression
String getInitializationExpression()Get the original expression used to initialize the field.- Returns:
- initialization as string.
-
isEnumConstant
boolean isEnumConstant()Equivalent ofField.isEnumConstant()- Returns:
trueif this field is an enum constant, otherwisefalse- Since:
- 2.0
-
getEnumConstantClass
JavaClass getEnumConstantClass()- Returns:
- the classBody of the enum constant
- Since:
- 2.0
-
getEnumConstantArguments
List<Expression> getEnumConstantArguments()- Returns:
- the arguments of the enum constant
- Since:
- 2.0
-