com.tc.asm.tree.analysis
Class BasicValue
java.lang.Object
com.tc.asm.tree.analysis.BasicValue
- All Implemented Interfaces:
- Value
public class BasicValue
- extends java.lang.Object
- implements Value
A Value
that 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
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
UNINITIALIZED_VALUE
public static final Value UNINITIALIZED_VALUE
INT_VALUE
public static final Value INT_VALUE
FLOAT_VALUE
public static final Value FLOAT_VALUE
LONG_VALUE
public static final Value LONG_VALUE
DOUBLE_VALUE
public static final Value DOUBLE_VALUE
REFERENCE_VALUE
public static final Value REFERENCE_VALUE
RETURNADDRESS_VALUE
public static final Value RETURNADDRESS_VALUE
BasicValue
public BasicValue(Type type)
getType
public Type getType()
getSize
public int getSize()
- Description copied from interface:
Value
- Returns the size of this value in words.
- Specified by:
getSize
in interface Value
- Returns:
- either 1 or 2.
isReference
public boolean isReference()
equals
public boolean equals(java.lang.Object value)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2010 Terracotta, Inc.. All Rights Reserved.