public class HotSpotResolvedJavaFieldImpl extends Object implements HotSpotResolvedJavaField, HotSpotProxified
Modifier and Type | Class and Description |
---|---|
static class |
HotSpotResolvedJavaFieldImpl.FieldLocationIdentity |
(package private) static class |
HotSpotResolvedJavaFieldImpl.Options |
(package private) static class |
HotSpotResolvedJavaFieldImpl.WellKnownImplicitStableField |
Modifier and Type | Field and Description |
---|---|
private HotSpotResolvedObjectTypeImpl |
holder |
private LocationIdentity |
locationIdentity |
private int |
modifiers
This value contains all flags as stored in the VM including internal ones.
|
private String |
name |
private int |
offset |
private Field |
toJavaCache |
private JavaType |
type |
ANNOTATION, BRIDGE, ENUM, MANDATED, SYNTHETIC, VARARGS
Constructor and Description |
---|
HotSpotResolvedJavaFieldImpl(HotSpotResolvedObjectTypeImpl holder,
String name,
JavaType type,
long offset,
int modifiers) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
<T extends Annotation> |
getAnnotation(Class<T> annotationClass)
Returns the annotation for the specified type of this field, if such an annotation is
present.
|
HotSpotResolvedObjectTypeImpl |
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.
|
String |
getName()
Returns the name of this field.
|
JavaType |
getType()
Returns a
JavaType object that identifies the declared type for this field. |
int |
hashCode() |
private boolean |
isArray() |
private boolean |
isImplicitStableField() |
boolean |
isInObject(Object object)
Determines if a given object contains this field.
|
boolean |
isInternal()
Determines if this field was injected by the VM.
|
boolean |
isStable()
Checks if this field has the
Stable annotation. |
boolean |
isSynthetic()
Determines if this field is a synthetic field as defined by the Java Language Specification.
|
private boolean |
isSyntheticImplicitStableField() |
private boolean |
isWellKnownImplicitStableField() |
int |
offset() |
private Field |
toJava() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isFinal
isAbstract, isConcrete, isFinalFlagSet, isInterface, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSynchronized, isTransient, isVolatile, jvmClassModifiers, jvmFieldModifiers, jvmMethodModifiers
private final HotSpotResolvedObjectTypeImpl holder
private final int offset
private final int modifiers
private final LocationIdentity locationIdentity
private Field toJavaCache
public HotSpotResolvedJavaFieldImpl(HotSpotResolvedObjectTypeImpl holder, String name, JavaType type, long offset, int modifiers)
public int getModifiers()
ResolvedJavaField
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
getModifiers
in interface ResolvedJavaField
public boolean isInternal()
ResolvedJavaField
isInternal
in interface ResolvedJavaField
public boolean isInObject(Object object)
isInObject
in interface HotSpotResolvedJavaField
object
's classpublic HotSpotResolvedObjectTypeImpl getDeclaringClass()
ResolvedJavaField
ResolvedJavaType
object representing the class or interface that declares
this field.getDeclaringClass
in interface JavaField
getDeclaringClass
in interface ResolvedJavaField
public String getName()
JavaField
public JavaType getType()
JavaField
JavaType
object that identifies the declared type for this field.public int offset()
offset
in interface HotSpotResolvedJavaField
public boolean isSynthetic()
ResolvedJavaField
isSynthetic
in interface ResolvedJavaField
public boolean isStable()
Stable
annotation.isStable
in interface HotSpotResolvedJavaField
Stable
annotation, false otherwisepublic <T extends Annotation> T getAnnotation(Class<T> annotationClass)
ResolvedJavaField
getAnnotation
in interface ResolvedJavaField
annotationClass
- the Class object corresponding to the annotation typenull
private boolean isArray()
private boolean isImplicitStableField()
private boolean isSyntheticImplicitStableField()
private boolean isWellKnownImplicitStableField()
public LocationIdentity getLocationIdentity()
ResolvedJavaField
getLocationIdentity
in interface ResolvedJavaField