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
-
Method Summary
Modifier and TypeMethodDescription<V extends ExprVisitor>
Vaccept
(V v) Called when this object is visited.int
Returns a (not necessarily fixed) hash code for this object.boolean
equivTo
(Object o, JimpleComparator comparator) Returns true if this object is equivalent to o according to the given comparator.getArg
(int index) getArg
(BasicBlock<?> block) int
getArgIndex
(BasicBlock<?> block) getArgs()
int
Map<Local,
BasicBlock<?>> BasicBlock<?>
getBlock
(int index) BasicBlock<?>
List<BasicBlock<?>>
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.toString()
void
toString
(StmtPrinter up) withArgToBlockMap
(Map<Local, BasicBlock<?>> argToBlock)
-
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>
-