public abstract class ImageHeapConstant extends Object implements org.graalvm.compiler.core.common.type.TypedConstant, org.graalvm.compiler.core.common.type.CompressibleConstant
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
compressed |
protected JavaConstant |
hostedObject
Stores the hosted object, already processed by the object transformers.
|
protected int |
identityHashCode |
protected ResolvedJavaType |
type
Stores the type of this object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
asBoolean() |
Object |
asBoxedPrimitive() |
double |
asDouble() |
float |
asFloat() |
int |
asInt() |
long |
asLong() |
boolean |
equals(Object o) |
abstract ImageHeapConstant |
forObjectClone()
Returns a new image heap instance, as if
Object.clone() was called on the original
object. |
JavaConstant |
getHostedObject() |
int |
getIdentityHashCode() |
JavaKind |
getJavaKind() |
ResolvedJavaType |
getType(MetaAccessProvider provider) |
int |
hashCode() |
boolean |
isBackedByHostedObject() |
boolean |
isCompressed() |
boolean |
isDefaultForKind() |
boolean |
isNull() |
boolean |
isReachable() |
boolean |
markReachable(ObjectScanner.ScanReason reason) |
void |
setType(ResolvedJavaType type) |
String |
toValueString() |
protected ResolvedJavaType type
protected final JavaConstant hostedObject
protected final int identityHashCode
protected final boolean compressed
public boolean markReachable(ObjectScanner.ScanReason reason)
public boolean isReachable()
public int getIdentityHashCode()
getIdentityHashCode in interface org.graalvm.compiler.core.common.type.TypedConstantpublic JavaConstant getHostedObject()
public boolean isBackedByHostedObject()
public JavaKind getJavaKind()
public boolean isNull()
public boolean isDefaultForKind()
public ResolvedJavaType getType(MetaAccessProvider provider)
getType in interface org.graalvm.compiler.core.common.type.TypedConstantpublic void setType(ResolvedJavaType type)
public Object asBoxedPrimitive()
public int asInt()
public boolean asBoolean()
public long asLong()
public float asFloat()
public double asDouble()
public boolean isCompressed()
isCompressed in interface org.graalvm.compiler.core.common.type.CompressibleConstantpublic String toValueString()
public abstract ImageHeapConstant forObjectClone()
Object.clone() was called on the original
object. If the type is not cloneable, then null is returned.