public interface ResolvedJavaField extends JavaField, ModifiersProvider
constant pools
.ANNOTATION, BRIDGE, ENUM, MANDATED, SYNTHETIC, VARARGS
Modifier and Type | Method and Description |
---|---|
<T extends Annotation> |
getAnnotation(Class<T> annotationClass)
Returns the annotation for the specified type of this field, if such an annotation is
present.
|
ResolvedJavaType |
getDeclaringClass()
Returns the
ResolvedJavaType object representing the class or interface that declares
this field. |
LocationIdentity |
getLocationIdentity()
Returns an object representing the unique location identity of this resolved Java field.
|
int |
getModifiers()
Returns the Java Virtual Machine modifiers for this element.
|
default boolean |
isFinal() |
boolean |
isInternal()
Determines if this field was injected by the VM.
|
boolean |
isSynthetic()
Determines if this field is a synthetic field as defined by the Java Language Specification.
|
format, getKind, getName, getType
isAbstract, isConcrete, isFinalFlagSet, isInterface, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSynchronized, isTransient, isVolatile, jvmClassModifiers, jvmFieldModifiers, jvmMethodModifiers
int getModifiers()
ResolvedJavaType
) can not be private or protected.
Only the field flags specified in the JVM specification will be included in the returned mask.
getModifiers
in interface ModifiersProvider
default boolean isFinal()
boolean isInternal()
boolean isSynthetic()
ResolvedJavaType getDeclaringClass()
ResolvedJavaType
object representing the class or interface that declares
this field.getDeclaringClass
in interface JavaField
<T extends Annotation> T getAnnotation(Class<T> annotationClass)
annotationClass
- the Class object corresponding to the annotation typenull
LocationIdentity getLocationIdentity()