Package sootup.core.jimple.common.expr
Class AbstractBinopExpr
java.lang.Object
sootup.core.jimple.common.expr.AbstractBinopExpr
- Direct Known Subclasses:
AbstractFloatBinopExpr,AbstractIntBinopExpr,AbstractIntLongBinopExpr
Abstract base class for binary operator expressions.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcollectUses(List<Value> collector) Collects all values used by this value into the given list.intReturns a hash code for this object, consistent with structural equality.booleanequivTo(@NonNull Object o, @NonNull JimpleComparator comparator) Returns true if this object is equivalent to o according to the given comparator.@NonNull ImmediategetOp1()Returns the left operand of this binary expression.@NonNull ImmediategetOp2()Returns the right operand of this binary expression.abstract @NonNull StringReturns the unique symbol for an operator.toString()voidtoString(@NonNull StmtPrinter up) Appends a string representation of this value to the given printer.abstract @NonNull AbstractBinopExprReturns a copy of this expression with the left operand replaced.abstract @NonNull AbstractBinopExprReturns a copy of this expression with the right operand replaced.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface sootup.core.jimple.common.expr.Expr
asJAddExpr, asJAndExpr, asJCastExpr, asJCmpExpr, asJCmpgExpr, asJCmplExpr, asJDivExpr, asJDynamicInvokeExpr, asJEqExpr, asJGeExpr, asJGtExpr, asJInstanceOfExpr, asJInterfaceInvokeExpr, asJLeExpr, asJLengthExpr, asJLtExpr, asJMulExpr, asJNeExpr, asJNegExpr, asJNewArrayExpr, asJNewExpr, asJNewMultiArrayExpr, asJOrExpr, asJPhiExpr, asJRemExpr, asJShlExpr, asJShrExpr, asJSpecialInvokeExpr, asJStaticInvokeExpr, asJSubExpr, asJUshrExpr, asJVirtualInvokeExpr, asJXorExpr, isJAddExpr, isJAndExpr, isJCastExpr, isJCmpExpr, isJCmpgExpr, isJCmplExpr, isJDivExpr, isJDynamicInvokeExpr, isJEqExpr, isJGeExpr, isJGtExpr, isJInstanceOfExpr, isJInterfaceInvokeExpr, isJLeExpr, isJLengthExpr, isJLtExpr, isJMulExpr, isJNeExpr, isJNegExpr, isJNewArrayExpr, isJNewExpr, isJNewMultiArrayExpr, isJOrExpr, isJPhiExpr, isJRemExpr, isJShlExpr, isJShrExpr, isJSpecialInvokeExpr, isJStaticInvokeExpr, isJSubExpr, isJUshrExpr, isJVirtualInvokeExpr, isJXorExpr, toJAddExpr, toJAndExpr, toJCastExpr, toJCmpExpr, toJCmpgExpr, toJCmplExpr, toJDivExpr, toJDynamicInvokeExpr, toJEqExpr, toJGeExpr, toJGtExpr, toJInstanceOfExpr, toJInterfaceInvokeExpr, toJLeExpr, toJLengthExpr, toJLtExpr, toJMulExpr, toJNeExpr, toJNegExpr, toJNewArrayExpr, toJNewExpr, toJNewMultiArrayExpr, toJOrExpr, toJPhiExpr, toJRemExpr, toJShlExpr, toJShrExpr, toJSpecialInvokeExpr, toJStaticInvokeExpr, toJSubExpr, toJUshrExpr, toJVirtualInvokeExpr, toJXorExpr
-
Method Details
-
getOp1
Returns the left operand of this binary expression. -
getOp2
Returns the right operand of this binary expression. -
collectUses
Description copied from interface:ValueCollects all values used by this value into the given list.- Specified by:
collectUsesin interfaceValue
-
equivTo
Description copied from interface:EquivToReturns true if this object is equivalent to o according to the given comparator. -
equivHashCode
public int equivHashCode()Returns a hash code for this object, consistent with structural equality.- Specified by:
equivHashCodein interfaceEquivTo- Returns:
- a structural hash code consistent with equivTo
-
getSymbol
Returns the unique symbol for an operator.- Returns:
- the operator symbol string (e.g., "+", "-")
-
toString
-
toString
Description copied from interface:ValueAppends a string representation of this value to the given printer. -
withOp1
Returns a copy of this expression with the left operand replaced. -
withOp2
Returns a copy of this expression with the right operand replaced.
-