soot.toolkits.scalar
Class UnitValueBoxPair

java.lang.Object
  |
  +--soot.toolkits.scalar.UnitValueBoxPair

public class UnitValueBoxPair
extends java.lang.Object

Utility class used to package a Unit and a ValueBox together.


Field Summary
 Unit unit
           
 ValueBox valueBox
           
 
Constructor Summary
UnitValueBoxPair(Unit unit, ValueBox valueBox)
          Constructs a UnitValueBoxPair form a Unit object and a ValueBox object.
 
Method Summary
 boolean equals(java.lang.Object other)
          Two UnitValueBoxPairs are equal iff they the Unit they hold are 'equal' and the ValueBoxes they hold are 'equal'.
 Unit getUnit()
           
 ValueBox getValueBox()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

unit

public Unit unit

valueBox

public ValueBox valueBox
Constructor Detail

UnitValueBoxPair

public UnitValueBoxPair(Unit unit,
                        ValueBox valueBox)
Constructs a UnitValueBoxPair form a Unit object and a ValueBox object.

Parameters:
unit - some Unit.
Method Detail

equals

public boolean equals(java.lang.Object other)
Two UnitValueBoxPairs are equal iff they the Unit they hold are 'equal' and the ValueBoxes they hold are 'equal'.

Overrides:
equals in class java.lang.Object
Parameters:
other - another UnitValueBoxPair
Returns:
true if equal.

getUnit

public Unit getUnit()

getValueBox

public ValueBox getValueBox()