soot.shimple.internal
Class SPiExpr

java.lang.Object
  extended by soot.shimple.internal.SPiExpr
All Implemented Interfaces:
Serializable, EquivTo, Expr, PiExpr, ShimpleExpr, UnitBoxOwner, Switchable, Value

public class SPiExpr
extends Object
implements PiExpr

Author:
Navindra Umanee
See Also:
Serialized Form

Field Summary
protected  ValueUnitPair argBox
           
protected  Object targetKey
           
 
Constructor Summary
SPiExpr(Value v, Unit u, Object o)
           
 
Method Summary
 void apply(Switch sw)
          Called when this object is visited.
 void clearUnitBoxes()
           
 Object clone()
          Returns a clone of this Value.
 int equivHashCode()
          Returns a (not necessarily fixed) hash code for this object.
 boolean equivTo(Object o)
          Returns true if this object is equivalent to o.
 ValueUnitPair getArgBox()
           
 Unit getCondStmt()
           
 Object getTargetKey()
           
 Type getType()
          Returns the Soot type of this Value.
 List getUnitBoxes()
           
 List getUseBoxes()
          Returns a List of boxes corresponding to Values which are used by (ie contained within) this Value.
 Value getValue()
           
 void setCondStmt(Unit pred)
           
 void setTargetKey(Object targetKey)
           
 void setValue(Value value)
           
 String toString()
           
 void toString(UnitPrinter up)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

argBox

protected ValueUnitPair argBox

targetKey

protected Object targetKey
Constructor Detail

SPiExpr

public SPiExpr(Value v,
               Unit u,
               Object o)
Method Detail

getArgBox

public ValueUnitPair getArgBox()
Specified by:
getArgBox in interface PiExpr

getValue

public Value getValue()
Specified by:
getValue in interface PiExpr

getCondStmt

public Unit getCondStmt()
Specified by:
getCondStmt in interface PiExpr

getTargetKey

public Object getTargetKey()
Specified by:
getTargetKey in interface PiExpr

setValue

public void setValue(Value value)
Specified by:
setValue in interface PiExpr

setCondStmt

public void setCondStmt(Unit pred)
Specified by:
setCondStmt in interface PiExpr

setTargetKey

public void setTargetKey(Object targetKey)
Specified by:
setTargetKey in interface PiExpr

getUnitBoxes

public List getUnitBoxes()
Specified by:
getUnitBoxes in interface UnitBoxOwner

clearUnitBoxes

public void clearUnitBoxes()
Specified by:
clearUnitBoxes in interface UnitBoxOwner

equivTo

public boolean equivTo(Object o)
Description copied from interface: EquivTo
Returns true if this object is equivalent to o.

Specified by:
equivTo in interface EquivTo

equivHashCode

public int equivHashCode()
Description copied from interface: EquivTo
Returns a (not necessarily fixed) hash code for this object. This hash code coincides with equivTo; it is undefined in the presence of mutable objects.

Specified by:
equivHashCode in interface EquivTo

apply

public void apply(Switch sw)
Description copied from interface: Switchable
Called when this object is visited.

Specified by:
apply in interface Switchable

clone

public Object clone()
Description copied from interface: Value
Returns a clone of this Value.

Specified by:
clone in interface Value
Overrides:
clone in class Object

toString

public String toString()
Overrides:
toString in class Object

toString

public void toString(UnitPrinter up)
Specified by:
toString in interface Value

getType

public Type getType()
Description copied from interface: Value
Returns the Soot type of this Value.

Specified by:
getType in interface Value

getUseBoxes

public List getUseBoxes()
Description copied from interface: Value
Returns a List of boxes corresponding to Values which are used by (ie contained within) this Value.

Specified by:
getUseBoxes in interface Value