public class HostedField extends Object implements ReadableJavaField, com.oracle.graal.pointsto.infrastructure.OriginalFieldProvider, SharedField, Comparable<HostedField>
Modifier and Type | Field and Description |
---|---|
protected int |
location |
com.oracle.graal.pointsto.meta.AnalysisField |
wrapped |
LOC_UNINITIALIZED, LOC_UNUSED
Constructor and Description |
---|
HostedField(HostedUniverse universe,
HostedMetaAccess metaAccess,
com.oracle.graal.pointsto.meta.AnalysisField wrapped,
HostedType holder,
HostedType type,
jdk.vm.ci.meta.JavaTypeProfile typeProfile) |
Modifier and Type | Method and Description |
---|---|
boolean |
allowConstantFolding() |
int |
compareTo(HostedField other) |
<T extends Annotation> |
getAnnotation(Class<T> annotationClass) |
Annotation[] |
getAnnotations() |
jdk.vm.ci.meta.JavaConstant |
getConstantValue() |
Annotation[] |
getDeclaredAnnotations() |
HostedType |
getDeclaringClass() |
jdk.vm.ci.meta.JavaTypeProfile |
getFieldTypeProfile() |
Field |
getJavaField() |
int |
getLocation()
The offset or index of the field.
|
int |
getModifiers() |
String |
getName() |
int |
getOffset() |
jdk.vm.ci.meta.JavaKind |
getStorageKind() |
HostedType |
getType() |
int |
hashCode() |
boolean |
hasLocation() |
boolean |
injectFinalForRuntimeCompilation() |
boolean |
isAccessed() |
boolean |
isInternal() |
boolean |
isSynthetic() |
boolean |
isWritten() |
jdk.vm.ci.meta.JavaConstant |
readStorageValue(jdk.vm.ci.meta.JavaConstant receiver) |
jdk.vm.ci.meta.JavaConstant |
readValue(jdk.vm.ci.meta.JavaConstant receiver) |
protected void |
setLocation(int location) |
protected void |
setUnmaterializedStaticConstant() |
String |
toString() |
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
injectFinalForRuntimeCompilation, readFieldValue
getJavaField
isAbstract, isConcrete, isFinalFlagSet, isInterface, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSynchronized, isTransient, isVolatile
getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByType, isAnnotationPresent
public final com.oracle.graal.pointsto.meta.AnalysisField wrapped
protected int location
public HostedField(HostedUniverse universe, HostedMetaAccess metaAccess, com.oracle.graal.pointsto.meta.AnalysisField wrapped, HostedType holder, HostedType type, jdk.vm.ci.meta.JavaTypeProfile typeProfile)
public jdk.vm.ci.meta.JavaTypeProfile getFieldTypeProfile()
protected void setLocation(int location)
protected void setUnmaterializedStaticConstant()
public jdk.vm.ci.meta.JavaConstant getConstantValue()
public boolean hasLocation()
public int getLocation()
getLocation
in interface SharedField
public boolean isAccessed()
isAccessed
in interface SharedField
public boolean isWritten()
isWritten
in interface SharedField
public String getName()
getName
in interface jdk.vm.ci.meta.JavaField
public HostedType getType()
getType
in interface jdk.vm.ci.meta.JavaField
public int getModifiers()
getModifiers
in interface jdk.vm.ci.meta.ModifiersProvider
getModifiers
in interface jdk.vm.ci.meta.ResolvedJavaField
public int getOffset()
getOffset
in interface jdk.vm.ci.meta.ResolvedJavaField
public jdk.vm.ci.meta.JavaConstant readValue(jdk.vm.ci.meta.JavaConstant receiver)
readValue
in interface ReadableJavaField
public boolean allowConstantFolding()
allowConstantFolding
in interface ReadableJavaField
public boolean injectFinalForRuntimeCompilation()
injectFinalForRuntimeCompilation
in interface ReadableJavaField
public jdk.vm.ci.meta.JavaConstant readStorageValue(jdk.vm.ci.meta.JavaConstant receiver)
public HostedType getDeclaringClass()
getDeclaringClass
in interface jdk.vm.ci.meta.JavaField
getDeclaringClass
in interface jdk.vm.ci.meta.ResolvedJavaField
public boolean isInternal()
isInternal
in interface jdk.vm.ci.meta.ResolvedJavaField
public boolean isSynthetic()
isSynthetic
in interface jdk.vm.ci.meta.ResolvedJavaField
public Annotation[] getAnnotations()
getAnnotations
in interface AnnotatedElement
public Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations
in interface AnnotatedElement
public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
getAnnotation
in interface AnnotatedElement
public jdk.vm.ci.meta.JavaKind getStorageKind()
getStorageKind
in interface SharedField
public int compareTo(HostedField other)
compareTo
in interface Comparable<HostedField>
public Field getJavaField()
getJavaField
in interface com.oracle.graal.pointsto.infrastructure.OriginalFieldProvider