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
FieldsModifier and TypeFieldDescriptionstatic final BasicValueA double value.static final BasicValueA float value.static final BasicValueA byte, boolean, char, short, or int value.static final BasicValueA long value.static final BasicValueAn object or array reference value.static final BasicValueA return address value (produced by a jsr instruction).static final BasicValueAn uninitialized value. -
Constructor Summary
ConstructorsConstructorDescriptionBasicValue(org.objectweb.asm.Type type) Constructs a newBasicValueof the given type. -
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
public BasicValue(org.objectweb.asm.Type type) Constructs a newBasicValueof the given type.- Parameters:
type- the value type.
-
-
Method Details
-
getType
public org.objectweb.asm.Type getType()Returns theTypeof this value.- Returns:
- the
Typeof this value.
-
getSize
public int getSize()Description copied from interface:ValueReturns 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
-