Package org.objectweb.asm.tree.analysis
Class BasicValue
- java.lang.Object
-
- org.objectweb.asm.tree.analysis.BasicValue
-
- All Implemented Interfaces:
Value
public class BasicValue extends java.lang.Object implements Value
AValuethat is represented by its type in a seven types type system. This type system distinguishes the UNINITIALZED, INT, FLOAT, LONG, DOUBLE, REFERENCE and RETURNADDRESS types.- Author:
- Eric Bruneton
-
-
Field Summary
Fields Modifier and Type Field Description static BasicValueDOUBLE_VALUEstatic BasicValueFLOAT_VALUEstatic BasicValueINT_VALUEstatic BasicValueLONG_VALUEstatic BasicValueREFERENCE_VALUEstatic BasicValueRETURNADDRESS_VALUEstatic BasicValueUNINITIALIZED_VALUE
-
Constructor Summary
Constructors Constructor Description BasicValue(Type 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 words.TypegetType()inthashCode()booleanisReference()java.lang.StringtoString()
-
-
-
Field Detail
-
UNINITIALIZED_VALUE
public static final BasicValue UNINITIALIZED_VALUE
-
INT_VALUE
public static final BasicValue INT_VALUE
-
FLOAT_VALUE
public static final BasicValue FLOAT_VALUE
-
LONG_VALUE
public static final BasicValue LONG_VALUE
-
DOUBLE_VALUE
public static final BasicValue DOUBLE_VALUE
-
REFERENCE_VALUE
public static final BasicValue REFERENCE_VALUE
-
RETURNADDRESS_VALUE
public static final BasicValue RETURNADDRESS_VALUE
-
-
Constructor Detail
-
BasicValue
public BasicValue(Type type)
-
-
Method Detail
-
getType
public Type getType()
-
getSize
public int getSize()
Description copied from interface:ValueReturns the size of this value in words.
-
isReference
public boolean isReference()
-
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
-
-