public final class HotSpotCompressedNullConstant extends AbstractValue implements JavaConstant, HotSpotConstant
null constant
.Value.IllegalValue
Modifier and Type | Field and Description |
---|---|
static JavaConstant |
COMPRESSED_NULL |
ILLEGAL
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 | Constructor and Description |
---|---|
private |
HotSpotCompressedNullConstant() |
Modifier and Type | Method and Description |
---|---|
boolean |
asBoolean()
Returns the primitive boolean value this constant represents.
|
Object |
asBoxedPrimitive()
Returns the value of this constant as a boxed Java value.
|
double |
asDouble()
Returns the primitive double value this constant represents.
|
float |
asFloat()
Returns the primitive float value this constant represents.
|
int |
asInt()
Returns the primitive int value this constant represents.
|
long |
asLong()
Returns the primitive long value this constant represents.
|
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isCompressed() |
boolean |
isDefaultForKind()
Checks whether this constant is the default value for its kind (null, 0, 0.0, false).
|
boolean |
isNull()
Checks whether this constant is null.
|
String |
toString() |
String |
toValueString() |
getKind, getKindSuffix, getLIRKind, getPlatformKind, identityEquals
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
add, defaultForKind, forBoolean, forBoxedPrimitive, forByte, forChar, forDouble, forFloat, forIllegal, forInt, forIntegerKind, forLong, forPrimitiveInt, forShort, isNonNull, isNull, mul, one, toString, zero
getLIRKind, getPlatformKind, identityEquals
getKind
public static final JavaConstant COMPRESSED_NULL
private HotSpotCompressedNullConstant()
public boolean isNull()
JavaConstant
isNull
in interface JavaConstant
true
if this constant is the null constantpublic boolean isCompressed()
isCompressed
in interface HotSpotConstant
public boolean isDefaultForKind()
JavaConstant
isDefaultForKind
in interface Constant
isDefaultForKind
in interface JavaConstant
true
if this constant is the default value for its kindpublic Object asBoxedPrimitive()
JavaConstant
asBoxedPrimitive
in interface JavaConstant
public int asInt()
JavaConstant
Kind.getStackKind()
of Kind.Int
.asInt
in interface JavaConstant
public boolean asBoolean()
JavaConstant
Kind.Boolean
.asBoolean
in interface JavaConstant
public long asLong()
JavaConstant
Kind.Long
, a Kind.getStackKind()
of Kind.Int
.asLong
in interface JavaConstant
public float asFloat()
JavaConstant
Kind.Float
.asFloat
in interface JavaConstant
public double asDouble()
JavaConstant
Kind.Double
.asDouble
in interface JavaConstant
public String toValueString()
toValueString
in interface Constant
toValueString
in interface JavaConstant
public int hashCode()
hashCode
in class AbstractValue
public boolean equals(Object o)
equals
in class AbstractValue