Package org.objectweb.asm.tree.analysis
Class BasicValue
java.lang.Object
org.objectweb.asm.tree.analysis.BasicValue
- All Implemented Interfaces:
Value
A
Value
that is represented with its type in a seven types type system. This type system
distinguishes the UNINITIALZED, INT, FLOAT, LONG, DOUBLE, REFERENCE and RETURNADDRESS types.-
Field Summary
Modifier and TypeFieldDescriptionstatic final BasicValue
A double value.static final BasicValue
A float value.static final BasicValue
A byte, boolean, char, short, or int value.static final BasicValue
A long value.static final BasicValue
An object or array reference value.static final BasicValue
A return address value (produced by a jsr instruction).static final BasicValue
An uninitialized value. -
Constructor Summary
-
Method Summary
-
Field Details
-
UNINITIALIZED_VALUE
An uninitialized value. -
INT_VALUE
A byte, boolean, char, short, or int value. -
FLOAT_VALUE
A float value. -
LONG_VALUE
A long value. -
DOUBLE_VALUE
A double value. -
REFERENCE_VALUE
An object or array reference value. -
RETURNADDRESS_VALUE
A return address value (produced by a jsr instruction).
-
-
Constructor Details
-
BasicValue
Constructs a newBasicValue
of the given type.- Parameters:
type
- the value type.
-
-
Method Details
-
getType
Returns theType
of this value.- Returns:
- the
Type
of this value.
-
getSize
public int getSize()Description copied from interface:Value
Returns the size of this value in 32 bits words. This size should be 1 for byte, boolean, char, short, int, float, object and array types, and 2 for long and double. -
isReference
public boolean isReference()Returns whether this value corresponds to an object or array reference.- Returns:
- whether this value corresponds to an object or array reference.
-
equals
-
hashCode
public int hashCode() -
toString
-