public class BasicValue extends java.lang.Object implements Value
Value that is represented by its type in a seven types type sytem.
This type system distinguishes the UNINITIALZED, INT, FLOAT, LONG, DOUBLE,
REFERENCE and RETURNADDRESS types.| Modifier and Type | Field and Description |
|---|---|
static Value |
DOUBLE_VALUE |
static Value |
FLOAT_VALUE |
static Value |
INT_VALUE |
static Value |
LONG_VALUE |
static Value |
REFERENCE_VALUE |
static Value |
RETURNADDRESS_VALUE |
static Value |
UNINITIALIZED_VALUE |
| Constructor and Description |
|---|
BasicValue(Type type) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Value value)
Compares this value with the given value.
|
int |
getSize()
Returns the size of this value in words.
|
Type |
getType() |
boolean |
isReference() |
java.lang.String |
toString() |
public static final Value UNINITIALIZED_VALUE
public static final Value INT_VALUE
public static final Value FLOAT_VALUE
public static final Value LONG_VALUE
public static final Value DOUBLE_VALUE
public static final Value REFERENCE_VALUE
public static final Value RETURNADDRESS_VALUE
public BasicValue(Type type)
public Type getType()
public int getSize()
Valuepublic boolean isReference()
public boolean equals(Value value)
Valuepublic java.lang.String toString()
toString in class java.lang.Object