SandMark version 2.1


sandmark.util.stacksimulator
Class CompositeIntData

java.lang.Object
  |
  +--sandmark.util.stacksimulator.StackData
        |
        +--sandmark.util.stacksimulator.PrimitiveData
              |
              +--sandmark.util.stacksimulator.IntData
                    |
                    +--sandmark.util.stacksimulator.CompositeIntData

class CompositeIntData
extends IntData


Constructor Summary
CompositeIntData(PrimitiveData op1, PrimitiveData op2, de.fub.bytecode.generic.InstructionHandle h)
           
CompositeIntData(PrimitiveData op1, PrimitiveData op2, int value, de.fub.bytecode.generic.InstructionHandle h)
           
 
Method Summary
 boolean equals(java.lang.Object o)
          Tests for equality between any two data elements.
 PrimitiveData getOp1()
           
 PrimitiveData getOp2()
           
 int getSize()
          Specifies the size of this object on the operand stack.
 de.fub.bytecode.generic.Type getType()
          Specifies the type of the data.
 java.lang.Number getValue()
           
 boolean hasDefinedValue()
           
 boolean isComposite()
           
 java.lang.String toString()
           
 StackData undefinedVersion()
           
 
Methods inherited from class sandmark.util.stacksimulator.StackData
getInstruction
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompositeIntData

public CompositeIntData(PrimitiveData op1,
                        PrimitiveData op2,
                        de.fub.bytecode.generic.InstructionHandle h)

CompositeIntData

public CompositeIntData(PrimitiveData op1,
                        PrimitiveData op2,
                        int value,
                        de.fub.bytecode.generic.InstructionHandle h)
Method Detail

equals

public boolean equals(java.lang.Object o)
Description copied from class: StackData
Tests for equality between any two data elements. Two StackData objects are equal iff they have the same instruction handle as their creation point. (subclasses have more restrictions for equality)

Overrides:
equals in class PrimitiveData
Parameters:
o - the object to test equality against

getOp1

public PrimitiveData getOp1()

getOp2

public PrimitiveData getOp2()

getSize

public int getSize()
Description copied from class: StackData
Specifies the size of this object on the operand stack.

Specified by:
getSize in class PrimitiveData
Returns:
the size of the object in bytes, 1 or 2.

getType

public de.fub.bytecode.generic.Type getType()
Description copied from class: StackData
Specifies the type of the data.

Specified by:
getType in class PrimitiveData
Returns:
a type object which is the type (or a superclass of the type) for the data object

undefinedVersion

public StackData undefinedVersion()
Specified by:
undefinedVersion in class StackData

isComposite

public boolean isComposite()

hasDefinedValue

public boolean hasDefinedValue()

getValue

public java.lang.Number getValue()

toString

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

SandMark version 2.1

Wed Jul 3 17:27:43 MST 2002