org.objectweb.asm.tree.analysis

Class BasicValue

Implemented Interfaces:
Value

public class BasicValue
extends 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

Field Summary

static Value
DOUBLE_VALUE
static Value
FLOAT_VALUE
static Value
INT_VALUE
static Value
LONG_VALUE
static Value
REFERENCE_VALUE
static Value
RETURNADDRESS_VALUE
static Value
UNINITIALIZED_VALUE

Constructor Summary

BasicValue(Type type)

Method Summary

boolean
equals(Object value)
int
getSize()
Type
getType()
int
hashCode()
boolean
isReference()
String
toString()

Field Details

DOUBLE_VALUE

public static final Value DOUBLE_VALUE

FLOAT_VALUE

public static final Value FLOAT_VALUE

INT_VALUE

public static final Value INT_VALUE

LONG_VALUE

public static final Value LONG_VALUE

REFERENCE_VALUE

public static final Value REFERENCE_VALUE

RETURNADDRESS_VALUE

public static final Value RETURNADDRESS_VALUE

UNINITIALIZED_VALUE

public static final Value UNINITIALIZED_VALUE

Constructor Details

BasicValue

public BasicValue(Type type)

Method Details

equals

public boolean equals(Object value)

getSize

public int getSize()
Specified by:
getSize in interface Value

getType

public Type getType()

hashCode

public int hashCode()

isReference

public boolean isReference()

toString

public String toString()