Package sootup.core.jimple.common.expr
Class JPhiExpr
java.lang.Object
sootup.core.jimple.common.expr.JPhiExpr
- All Implemented Interfaces:
EquivTo
,Value
,Expr
,Acceptor<ExprVisitor>
- Author:
- Zun Wang
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<V extends ExprVisitor>
Vaccept
(@NonNull V v) Called when this object is visited.int
Returns a (not necessarily fixed) hash code for this object.boolean
equivTo
(Object o, @NonNull JimpleComparator comparator) Returns true if this object is equivalent to o according to the given comparator.@NonNull Local
getArg
(int index) @NonNull Local
getArg
(@NonNull BasicBlock<?> block) int
getArgIndex
(@NonNull BasicBlock<?> block) getArgs()
int
@NonNull Map<Local,
BasicBlock<?>> @NonNull BasicBlock<?>
getBlock
(int index) @NonNull BasicBlock<?>
@NonNull List<BasicBlock<?>>
@NonNull Type
getType()
Returns the Soot type of this Value.getUses()
Returns a List of Locals,FieldRefs,ArrayRefs which are used by (ie contained within) this Expression or Reference.boolean
@NonNull String
toString()
void
toString
(@NonNull StmtPrinter up) @NonNull JPhiExpr
@NonNull JPhiExpr
withArgToBlockMap
(@NonNull Map<Local, BasicBlock<?>> argToBlock) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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, 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, 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, toJRemExpr, toJShlExpr, toJShrExpr, toJSpecialInvokeExpr, toJStaticInvokeExpr, toJSubExpr, toJUshrExpr, toJVirtualInvokeExpr, toJXorExpr
-
Constructor Details
-
JPhiExpr
-
-
Method Details
-
getArgs
-
getArgsSize
public int getArgsSize() -
getArg
-
getArg
-
getArgIndex
-
getBlocks
- Returns:
- a list of Preds in which each Pred corresponds to arg from args with the same list index.
-
getBlock
-
getBlock
-
getArgToBlockMap
-
getUses
Description copied from interface:Value
Returns a List of Locals,FieldRefs,ArrayRefs which are used by (ie contained within) this Expression or Reference. -
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. The contract is defined inJimpleComparator
.- Specified by:
equivHashCode
in interfaceEquivTo
-
equivTo
Description copied from interface:EquivTo
Returns true if this object is equivalent to o according to the given comparator. -
getType
Description copied from interface:Value
Returns the Soot type of this Value. -
toString
-
toString
-
withArgs
-
withArgToBlockMap
-
accept
Description copied from interface:Acceptor
Called when this object is visited.- Specified by:
accept
in interfaceAcceptor<ExprVisitor>
-
isJPhiExpr
public boolean isJPhiExpr()- Specified by:
isJPhiExpr
in interfaceExpr
-
asJPhiExpr
- Specified by:
asJPhiExpr
in interfaceExpr
-
toJPhiExpr
- Specified by:
toJPhiExpr
in interfaceExpr
-