soot.toolkits.scalar
Class UnitValueBoxPair

java.lang.Object
  extended by soot.toolkits.scalar.UnitValueBoxPair

public class UnitValueBoxPair
extends 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(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()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, 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:
local - some Local
unit - some Unit.
Method Detail

equals

public boolean equals(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 Object
Parameters:
other - another UnitValueBoxPair
Returns:
true if equal.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

getUnit

public Unit getUnit()

getValueBox

public ValueBox getValueBox()