public abstract class AbstractValue extends Object implements Value, KindProvider
Value.IllegalValue
Modifier and Type | Field and Description |
---|---|
static AllocatableValue |
ILLEGAL |
private Kind |
kind |
private LIRKind |
lirKind |
Modifier | Constructor and Description |
---|---|
protected |
AbstractValue(LIRKind lirKind)
Initializes a new value of the specified kind.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Kind |
getKind()
Returns the kind of this value.
|
protected String |
getKindSuffix()
Returns a String representation of the kind, which should be the end of all
Object.toString() implementation of subclasses. |
LIRKind |
getLIRKind() |
PlatformKind |
getPlatformKind()
Returns the platform specific kind used to store this value.
|
int |
hashCode() |
boolean |
identityEquals(AbstractValue other)
Checks if this value is identical to
other . |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
identityEquals
public static final AllocatableValue ILLEGAL
protected AbstractValue(LIRKind lirKind)
lirKind
- the kindprotected final String getKindSuffix()
Object.toString()
implementation of subclasses.public final Kind getKind()
getKind
in interface KindProvider
public final LIRKind getLIRKind()
getLIRKind
in interface Value
public final PlatformKind getPlatformKind()
getPlatformKind
in interface Value
public final boolean identityEquals(AbstractValue other)
other
.
Warning: Use with caution! Usually equivalence equals(Object)
is sufficient and
should be used.