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