Class BasicValue
java.lang.Object
org.objectweb.asm.tree.analysis.BasicValue
- All Implemented Interfaces:
Value
-
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
-
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
-
toString
-