public class HostedField extends Object implements ReadableJavaField, 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() |
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, waitinjectFinalForRuntimeCompilation, readFieldValueisAbstract, isConcrete, isFinalFlagSet, isInterface, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSynchronized, isTransient, isVolatilegetAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByType, isAnnotationPresentpublic 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 SharedFieldpublic boolean isAccessed()
isAccessed in interface SharedFieldpublic boolean isWritten()
isWritten in interface SharedFieldpublic String getName()
getName in interface jdk.vm.ci.meta.JavaFieldpublic HostedType getType()
getType in interface jdk.vm.ci.meta.JavaFieldpublic int getModifiers()
getModifiers in interface jdk.vm.ci.meta.ModifiersProvidergetModifiers in interface jdk.vm.ci.meta.ResolvedJavaFieldpublic int getOffset()
getOffset in interface jdk.vm.ci.meta.ResolvedJavaFieldpublic jdk.vm.ci.meta.JavaConstant readValue(jdk.vm.ci.meta.JavaConstant receiver)
readValue in interface ReadableJavaFieldpublic boolean allowConstantFolding()
allowConstantFolding in interface ReadableJavaFieldpublic boolean injectFinalForRuntimeCompilation()
injectFinalForRuntimeCompilation in interface ReadableJavaFieldpublic jdk.vm.ci.meta.JavaConstant readStorageValue(jdk.vm.ci.meta.JavaConstant receiver)
public HostedType getDeclaringClass()
getDeclaringClass in interface jdk.vm.ci.meta.JavaFieldgetDeclaringClass in interface jdk.vm.ci.meta.ResolvedJavaFieldpublic boolean isInternal()
isInternal in interface jdk.vm.ci.meta.ResolvedJavaFieldpublic boolean isSynthetic()
isSynthetic in interface jdk.vm.ci.meta.ResolvedJavaFieldpublic Annotation[] getAnnotations()
getAnnotations in interface AnnotatedElementpublic Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations in interface AnnotatedElementpublic <T extends Annotation> T getAnnotation(Class<T> annotationClass)
getAnnotation in interface AnnotatedElementpublic jdk.vm.ci.meta.JavaKind getStorageKind()
getStorageKind in interface SharedFieldpublic int compareTo(HostedField other)
compareTo in interface Comparable<HostedField>