Package org.objectweb.asm.tree.analysis
Class BasicValue
- java.lang.Object
-
- org.objectweb.asm.tree.analysis.BasicValue
-
-
Field Summary
Fields Modifier and Type Field Description static BasicValueDOUBLE_VALUEA double value.static BasicValueFLOAT_VALUEA float value.static BasicValueINT_VALUEA byte, boolean, char, short, or int value.static BasicValueLONG_VALUEA long value.static BasicValueREFERENCE_VALUEAn object or array reference value.static BasicValueRETURNADDRESS_VALUEA return address value (produced by a jsr instruction).static BasicValueUNINITIALIZED_VALUEAn uninitialized value.
-
Constructor Summary
Constructors Constructor Description BasicValue(org.objectweb.asm.Type type)Constructs a newBasicValueof the given type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object value)intgetSize()Returns the size of this value in 32 bits words.org.objectweb.asm.TypegetType()Returns theTypeof this value.inthashCode()booleanisReference()Returns whether this value corresponds to an object or array reference.java.lang.StringtoString()
-
-
-
Field Detail
-
UNINITIALIZED_VALUE
public static final BasicValue UNINITIALIZED_VALUE
An uninitialized value.
-
INT_VALUE
public static final BasicValue INT_VALUE
A byte, boolean, char, short, or int value.
-
FLOAT_VALUE
public static final BasicValue FLOAT_VALUE
A float value.
-
LONG_VALUE
public static final BasicValue LONG_VALUE
A long value.
-
DOUBLE_VALUE
public static final BasicValue DOUBLE_VALUE
A double value.
-
REFERENCE_VALUE
public static final BasicValue REFERENCE_VALUE
An object or array reference value.
-
RETURNADDRESS_VALUE
public static final BasicValue RETURNADDRESS_VALUE
A return address value (produced by a jsr instruction).
-
-
Constructor Detail
-
BasicValue
public BasicValue(org.objectweb.asm.Type type)
Constructs a newBasicValueof the given type.- Parameters:
type- the value type.
-
-
Method Detail
-
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
public boolean equals(java.lang.Object value)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-