soot.jimple.internal
Class AbstractBinopExpr

java.lang.Object
  extended by soot.jimple.internal.AbstractBinopExpr
All Implemented Interfaces:
Serializable, EquivTo, Expr, Switchable, Value
Direct Known Subclasses:
AbstractFloatBinopExpr, AbstractIntBinopExpr, AbstractIntLongBinopExpr, AbstractJimpleBinopExpr

public abstract class AbstractBinopExpr
extends Object
implements Expr

See Also:
Serialized Form

Field Summary
protected  ValueBox op1Box
           
protected  ValueBox op2Box
           
 
Constructor Summary
AbstractBinopExpr()
           
 
Method Summary
abstract  Object clone()
          Returns a clone of this Value.
 int equivHashCode()
          Returns a hash code for this object, consistent with structural equality.
 boolean equivTo(Object o)
          Returns true if this object is equivalent to o.
 Value getOp1()
           
 ValueBox getOp1Box()
           
 Value getOp2()
           
 ValueBox getOp2Box()
           
protected abstract  String getSymbol()
          Returns the unique symbol for an operator.
 List getUseBoxes()
          Returns a List of boxes corresponding to Values which are used by (ie contained within) this Value.
 void setOp1(Value op1)
           
 void setOp2(Value op2)
           
 String toString()
           
 void toString(UnitPrinter up)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface soot.Value
getType
 
Methods inherited from interface soot.util.Switchable
apply
 

Field Detail

op1Box

protected ValueBox op1Box

op2Box

protected ValueBox op2Box
Constructor Detail

AbstractBinopExpr

public AbstractBinopExpr()
Method Detail

getOp1

public Value getOp1()

getOp2

public Value getOp2()

getOp1Box

public ValueBox getOp1Box()

getOp2Box

public ValueBox getOp2Box()

setOp1

public void setOp1(Value op1)

setOp2

public void setOp2(Value op2)

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

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()
Returns a hash code for this object, consistent with structural equality.

Specified by:
equivHashCode in interface EquivTo

getSymbol

protected abstract String getSymbol()
Returns the unique symbol for an operator.


clone

public abstract 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