public interface HotSpotObjectConstant extends JavaConstant, HotSpotConstant, VMConstant
null
object reference, within the compiler and across the
compiler/runtime interface.Value.IllegalValue
DOUBLE_0, DOUBLE_1, FALSE, FLOAT_0, FLOAT_1, INT_0, INT_1, INT_2, INT_MINUS_1, LONG_0, LONG_1, NULL_POINTER, TRUE
Modifier and Type | Method and Description |
---|---|
<T> T |
asObject(Class<T> type)
Gets the object represented by this constant represents if it is of a given type.
|
Object |
asObject(ResolvedJavaType type)
Gets the object represented by this constant represents if it is of a given type.
|
JavaConstant |
compress() |
JavaConstant |
getCallSiteTarget(Assumptions assumptions)
Gets the result of
CallSite.getTarget() for the CallSite object represented
by this constant. |
JavaConstant |
getClassLoader()
Gets the result of
Class.getClassLoader() for the Class object represented by
this constant. |
JavaConstant |
getComponentType()
Gets the result of
Class.getComponentType() for the Class object represented
by this constant. |
int |
getIdentityHashCode()
Gets the identity has code for the object
represented by this constant.
|
JavaConstant |
getSuperclass()
Gets the result of
Class.getSuperclass() for the Class object represented by
this constant. |
HotSpotResolvedObjectType |
getType()
Gets the resolved Java type of the object represented by this constant.
|
boolean |
isInternedString()
Determines if this constant represents an interned string.
|
JavaConstant |
uncompress() |
add, asBoolean, asBoxedPrimitive, asDouble, asFloat, asInt, asLong, defaultForKind, forBoolean, forBoxedPrimitive, forByte, forChar, forDouble, forFloat, forIllegal, forInt, forIntegerKind, forLong, forPrimitiveInt, forShort, isDefaultForKind, isNonNull, isNull, isNull, mul, one, toString, toValueString, zero
getLIRKind, getPlatformKind, identityEquals
getKind
isCompressed
JavaConstant compress()
JavaConstant uncompress()
HotSpotResolvedObjectType getType()
JavaConstant getClassLoader()
Class.getClassLoader()
for the Class
object represented by
this constant.null
if this constant does not represent a Class
objectint getIdentityHashCode()
JavaConstant getComponentType()
Class.getComponentType()
for the Class
object represented
by this constant.null
if this constant does not represent a Class
objectJavaConstant getSuperclass()
Class.getSuperclass()
for the Class
object represented by
this constant.null
if this constant does not represent a Class
objectJavaConstant getCallSiteTarget(Assumptions assumptions)
CallSite.getTarget()
for the CallSite
object represented
by this constant.boolean isInternedString()
<T> T asObject(Class<T> type)
type
- the expected type of the object represented by this constant. If the object is
required to be of this type, then wrap the call to this method in
Objects.requireNonNull(Object)
.instance of
type
otherwise
null
Object asObject(ResolvedJavaType type)
type
- the expected type of the object represented by this constant. If the object is
required to be of this type, then wrap the call to this method in
Objects.requireNonNull(Object)
.instance of
type
otherwise
null