Oracle Fusion Middleware Java API Reference for Oracle TopLink
11g Release 1 (11.1.1)

B32476-03

oracle.toplink.libraries.asm.tree.analysis
Class BasicValue

java.lang.Object
  extended by oracle.toplink.libraries.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 sytem. This type system distinguishes the UNINITIALZED, INT, FLOAT, LONG, DOUBLE, REFERENCE and RETURNADDRESS types.


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(Value value)
          Compares this value with the given value.
 int getSize()
          Returns the size of this value in words.
 Type getType()
           
 boolean isReference()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

BasicValue

public BasicValue(Type type)
Method Detail

getType

public Type getType()

getSize

public int getSize()
Description copied from interface: oracle.toplink.libraries.asm.tree.analysis.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(Value value)
Description copied from interface: oracle.toplink.libraries.asm.tree.analysis.Value
Compares this value with the given value.

Specified by:
equals in interface Value
Parameters:
value - a value.
Returns:
true if the values are equals, false otherwise.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Copyright © 1998, 2010, Oracle. All Rights Reserved.