Package org.codehaus.groovy.groovydoc
Interface GroovyFieldDoc
- All Superinterfaces:
Comparable<GroovyDoc>,GroovyDoc,GroovyMemberDoc,GroovyProgramElementDoc
- All Known Implementing Classes:
SimpleGroovyFieldDoc
Describes a field or property in the Groovydoc model.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the constant value of this field when one is available.Returns the source expression used to define the constant value.booleanIndicates whether this field is declaredtransient.booleanIndicates whether this field is declaredvolatile.type()Returns the declared type of this field.Methods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.codehaus.groovy.groovydoc.GroovyDoc
commentText, firstSentenceCommentText, getRawCommentText, isAnnotationType, isAnnotationTypeElement, isClass, isConstructor, isDeprecated, isEnum, isEnumConstant, isError, isException, isField, isIncluded, isInterface, isMethod, isOrdinaryClass, isRecord, name, setRawCommentTextMethods inherited from interface org.codehaus.groovy.groovydoc.GroovyMemberDoc
isSyntheticMethods inherited from interface org.codehaus.groovy.groovydoc.GroovyProgramElementDoc
annotations, containingClass, containingPackage, isFinal, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, modifiers, modifierSpecifier, qualifiedName
-
Method Details
-
constantValue
Object constantValue()Returns the constant value of this field when one is available.- Returns:
- the constant value, or
nullif none is defined
-
constantValueExpression
String constantValueExpression()Returns the source expression used to define the constant value.- Returns:
- the constant value expression, or
nullif none is available
-
isTransient
boolean isTransient()Indicates whether this field is declaredtransient.- Returns:
trueif this field is transient
-
isVolatile
boolean isVolatile()Indicates whether this field is declaredvolatile.- Returns:
trueif this field is volatile
-
type
GroovyType type()Returns the declared type of this field.- Returns:
- the field type
-