Package soot.jimple.internal
Class AbstractBinopExpr
- java.lang.Object
-
- 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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractBinopExpr.BinopExprEnum
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractBinopExpr(ValueBox op1Box, ValueBox op2Box)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Objectclone()Returns a clone of this Value.intequivHashCode()Returns a hash code for this object, consistent with structural equality.booleanequivTo(Object o)Returns true if this object is equivalent to o.ValuegetOp1()ValueBoxgetOp1Box()ValuegetOp2()ValueBoxgetOp2Box()protected abstract StringgetSymbol()Returns the unique symbol for an operator.protected TypegetType(AbstractBinopExpr.BinopExprEnum exprTypes)List<ValueBox>getUseBoxes()Returns a List of boxes corresponding to Values which are used by (ie contained within) this Value.booleanisSuperclassSystemEnum(Type t)Returns true if the superclass of the given Type is a System.Enum (.Net)voidsetOp1(Value op1)voidsetOp2(Value op2)StringtoString()voidtoString(UnitPrinter up)-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface soot.util.Switchable
apply
-
-
-
-
Method Detail
-
getSymbol
protected abstract String getSymbol()
Returns the unique symbol for an operator.
-
clone
public abstract Object clone()
Description copied from interface:ValueReturns a clone of this Value.
-
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 final List<ValueBox> getUseBoxes()
Description copied from interface:ValueReturns a List of boxes corresponding to Values which are used by (ie contained within) this Value.- Specified by:
getUseBoxesin interfaceValue
-
equivTo
public boolean equivTo(Object o)
Description copied from interface:EquivToReturns true if this object is equivalent to o.
-
equivHashCode
public int equivHashCode()
Returns a hash code for this object, consistent with structural equality.- Specified by:
equivHashCodein interfaceEquivTo
-
toString
public void toString(UnitPrinter up)
-
getType
protected Type getType(AbstractBinopExpr.BinopExprEnum exprTypes)
-
isSuperclassSystemEnum
public boolean isSuperclassSystemEnum(Type t)
Returns true if the superclass of the given Type is a System.Enum (.Net)- Parameters:
t-- Returns:
-
-