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 BasicValue
DOUBLE_VALUE
A double value.static BasicValue
FLOAT_VALUE
A float value.static BasicValue
INT_VALUE
A byte, boolean, char, short, or int value.static BasicValue
LONG_VALUE
A long value.static BasicValue
REFERENCE_VALUE
An object or array reference value.static BasicValue
RETURNADDRESS_VALUE
A return address value (produced by a jsr instruction).static BasicValue
UNINITIALIZED_VALUE
An uninitialized value.
-
Constructor Summary
Constructors Constructor Description BasicValue(org.objectweb.asm.Type type)
Constructs a newBasicValue
of the given type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object value)
int
getSize()
Returns the size of this value in 32 bits words.org.objectweb.asm.Type
getType()
Returns theType
of this value.int
hashCode()
boolean
isReference()
Returns whether this value corresponds to an object or array reference.java.lang.String
toString()
-
-
-
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 newBasicValue
of the given type.- Parameters:
type
- the value type.
-
-
Method Detail
-
getType
public org.objectweb.asm.Type 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
public boolean equals(java.lang.Object value)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-