Top Description Methods
jdk.vm.ci.meta

public Interface ResolvedJavaField

extends JavaField, ModifiersProvider, AnnotatedElement, Annotated
Known Direct Subinterfaces
jdk.vm.ci.hotspot.HotSpotResolvedJavaField
Imports
java.lang.reflect.AnnotatedElement, .Modifier

Represents a reference to a resolved Java field. Fields, like methods and types, are resolved through constant pools.

Method Summary

Modifier and TypeMethod and Description
public default JavaConstant

Returns:

null if this field has no ConstantValue attribute
getConstantValue
()

Gets the value of the ConstantValue attribute (4.7.2) associated with this field.

public ResolvedJavaType
getDeclaringClass()

Redeclares jdk.vm.ci.meta.JavaField.getDeclaringClass.

Returns the ResolvedJavaType object representing the class or interface that declares this field.
public int
getModifiers()

Redeclares jdk.vm.ci.meta.ModifiersProvider.getModifiers.

Returns the modifiers for this element.
public int
getOffset()

Returns the offset of the field relative to the base of its storage container (e.g., instanceOop for an instance field or Klass* for a static field on HotSpot).

public default boolean
public boolean
isInternal()

Determines if this field was injected by the VM.

public boolean
isSynthetic()

Determines if this field is a synthetic field as defined by the Java Language Specification.

Inherited from java.lang.reflect.AnnotatedElement:
getAnnotationgetAnnotationsgetAnnotationsByTypegetDeclaredAnnotationgetDeclaredAnnotationsgetDeclaredAnnotationsByTypeisAnnotationPresent
Inherited from jdk.vm.ci.meta.Annotated:
getAnnotationDatagetAnnotationData
Inherited from jdk.vm.ci.meta.JavaField:
formatgetJavaKindgetNamegetType
Inherited from jdk.vm.ci.meta.ModifiersProvider:
isAbstractisConcreteisFinalFlagSetisInterfaceisNativeisPackagePrivateisPrivateisProtectedisPublicisStaticisStrictisSynchronizedisTransientisVolatile

Method Detail

getConstantValueback to summary
public default JavaConstant getConstantValue()

Gets the value of the ConstantValue attribute (4.7.2) associated with this field.

Returns:JavaConstant

null if this field has no ConstantValue attribute

Exceptions
UnsupportedOperationException:
if this operation is not supported
getDeclaringClassback to summary
public ResolvedJavaType getDeclaringClass()

Redeclares jdk.vm.ci.meta.JavaField.getDeclaringClass.

Returns the ResolvedJavaType object representing the class or interface that declares this field.

Annotations
@Override
getModifiersback to summary
public int getModifiers()

Redeclares jdk.vm.ci.meta.ModifiersProvider.getModifiers.

Doc from jdk.vm.ci.meta.ModifiersProvider.getModifiers.

Returns the modifiers for this element.

Only the field flags specified in the JVM specification will be included in the returned mask.

Annotations
@Override
getOffsetback to summary
public int getOffset()

Returns the offset of the field relative to the base of its storage container (e.g., instanceOop for an instance field or Klass* for a static field on HotSpot).

isFinalback to summary
public default boolean isFinal()
isInternalback to summary
public boolean isInternal()

Determines if this field was injected by the VM. Such a field, for example, is not derived from a class file.

isSyntheticback to summary
public boolean isSynthetic()

Determines if this field is a synthetic field as defined by the Java Language Specification.