public class GroovyFieldElement extends AbstractGroovyElement implements FieldElement
Variable. The
variable could be a field or property node.compilationUnit, visitorContextEMPTY_ELEMENT_ARRAYCLASS_NAME_SUFFIX, EMPTY_METADATA, VALUE_MEMBEREMPTY| Modifier and Type | Method and Description |
|---|---|
int |
getArrayDimensions()
If the type is an array, the number of dimensions.
|
ClassElement |
getDeclaringType() |
ClassElement |
getGenericField()
Obtain the generic type with the associated annotation metadata for the field.
|
java.lang.String |
getName() |
java.lang.Object |
getNativeType()
Returns the native underlying type.
|
ClassElement |
getType() |
boolean |
isAbstract() |
boolean |
isArray()
Is the type an array.
|
boolean |
isFinal() |
boolean |
isPrimitive()
Whether the type is primitive.
|
boolean |
isPrivate() |
boolean |
isProtected() |
boolean |
isPublic() |
boolean |
isStatic() |
java.lang.String |
toString() |
alignNewGenericsInfo, annotate, getAnnotationMetadata, getGenericElement, isPackagePrivate, resolveAnnotationMetadata, toClassElementclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetGenericTypegetOwningTypeannotate, annotate, annotate, annotate, getDocumentation, getSimpleName, isPackagePrivatebooleanValue, booleanValue, booleanValue, booleanValue, classValue, classValue, classValue, classValue, classValues, classValues, classValues, classValues, doubleValue, doubleValue, doubleValue, enumValue, enumValue, enumValue, enumValue, enumValues, enumValues, enumValues, enumValues, findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotation, getAnnotation, getAnnotationNameByStereotype, getAnnotationNameByStereotype, getAnnotationNames, getAnnotationNamesByStereotype, getAnnotationNamesByStereotype, getAnnotationType, getAnnotationType, getAnnotationTypeByStereotype, getAnnotationTypeByStereotype, getAnnotationTypesByStereotype, getAnnotationTypesByStereotype, getAnnotationValuesByType, getDeclaredAnnotation, getDeclaredAnnotation, getDeclaredAnnotationNameByStereotype, getDeclaredAnnotationNames, getDeclaredAnnotationNamesByStereotype, getDeclaredAnnotationTypeByStereotype, getDeclaredAnnotationTypeByStereotype, getDeclaredAnnotationValuesByType, getDefaultValue, getDefaultValue, getDefaultValue, getDefaultValue, getDefaultValues, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValues, getValues, hasAnnotation, hasAnnotation, hasDeclaredAnnotation, hasDeclaredAnnotation, hasDeclaredStereotype, hasDeclaredStereotype, hasDeclaredStereotype, hasSimpleAnnotation, hasSimpleDeclaredAnnotation, hasStereotype, hasStereotype, hasStereotype, hasStereotype, intValue, intValue, intValue, isAnnotationPresent, isDeclaredAnnotationPresent, isEmpty, isFalse, isFalse, isPresent, isPresent, isTrue, isTrue, longValue, longValue, stringValue, stringValue, stringValue, stringValue, stringValues, stringValues, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByTypehasDeclaredStereotypeisDeclaredNonNull, isDeclaredNullable, isNonNull, isNullablegetAnnotationMetadatapublic java.lang.String toString()
toString in class java.lang.Objectpublic ClassElement getGenericField()
FieldElementgetGenericField in interface FieldElementpublic boolean isPrimitive()
TypedElementisPrimitive in interface TypedElementpublic boolean isArray()
TypedElementisArray in interface TypedElementpublic int getArrayDimensions()
TypedElementgetArrayDimensions in interface TypedElementpublic java.lang.String getName()
public boolean isAbstract()
isAbstract in interface Elementpublic boolean isStatic()
public boolean isPublic()
public boolean isPrivate()
public boolean isFinal()
public boolean isProtected()
isProtected in interface Elementpublic java.lang.Object getNativeType()
ElementgetNativeType in interface Element@NonNull public ClassElement getType()
getType in interface TypedElementpublic ClassElement getDeclaringType()
getDeclaringType in interface MemberElement