public class JIfStmt extends AbstractStmt implements IfStmt, BranchableStmt
| Modifier and Type | Field and Description |
|---|---|
protected ValueBox |
conditionBox |
protected UnitBox |
targetBox |
protected List<UnitBox> |
targetBoxes |
boxesPointingToThiscol, line, mTagList| Modifier | Constructor and Description |
|---|---|
protected |
JIfStmt(ValueBox conditionBox,
UnitBox targetBox) |
|
JIfStmt(Value condition,
Unit target) |
|
JIfStmt(Value condition,
UnitBox target) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(Switch sw)
Used to implement the Switchable construct.
|
boolean |
branches()
Returns true if execution after this statement does not necessarily continue at the following statement.
|
Object |
clone()
Returns a deep clone of this object.
|
void |
convertToBaf(JimpleToBafContext context,
List<Unit> out) |
boolean |
fallsThrough()
Returns true if execution after this statement may continue at the following statement.
|
Value |
getCondition() |
ValueBox |
getConditionBox() |
Stmt |
getTarget() |
UnitBox |
getTargetBox() |
List<UnitBox> |
getUnitBoxes()
Returns a list of Boxes containing Units defined in this Unit; typically branch targets.
|
List<ValueBox> |
getUseBoxes()
Returns a list of Boxes containing Values used in this Unit.
|
void |
setCondition(Value condition)
condition must be soot.jimple.ConditionExpr
|
void |
setTarget(Unit target) |
String |
toString() |
void |
toString(UnitPrinter up) |
containsArrayRef, containsFieldRef, containsInvokeExpr, getArrayRef, getArrayRefBox, getFieldRef, getFieldRefBox, getInvokeExpr, getInvokeExprBoxaddBoxPointingToThis, clearUnitBoxes, getBoxesPointingToThis, getDefBoxes, getUseAndDefBoxes, redirectJumpsToThisTo, removeBoxPointingToThisaddAllTagsOf, addTag, getJavaSourceStartColumnNumber, getJavaSourceStartLineNumber, getTag, getTags, hasTag, removeAllTags, removeTagequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcontainsArrayRef, containsFieldRef, containsInvokeExpr, getArrayRef, getArrayRefBox, getFieldRef, getFieldRefBox, getInvokeExpr, getInvokeExprBoxaddBoxPointingToThis, clearUnitBoxes, getBoxesPointingToThis, getDefBoxes, getUseAndDefBoxes, redirectJumpsToThisTo, removeBoxPointingToThisaddAllTagsOf, addTag, getJavaSourceStartColumnNumber, getJavaSourceStartLineNumber, getTag, getTags, hasTag, removeAllTags, removeTagprotected final ValueBox conditionBox
protected final UnitBox targetBox
public Object clone()
AbstractUnitclone in interface Unitclone in class AbstractUnitpublic void toString(UnitPrinter up)
public Value getCondition()
getCondition in interface IfStmtpublic void setCondition(Value condition)
IfStmtsetCondition in interface IfStmtpublic ValueBox getConditionBox()
getConditionBox in interface IfStmtpublic Stmt getTarget()
getTarget in interface BranchableStmtgetTarget in interface IfStmtpublic void setTarget(Unit target)
setTarget in interface BranchableStmtsetTarget in interface IfStmtpublic UnitBox getTargetBox()
getTargetBox in interface BranchableStmtgetTargetBox in interface IfStmtpublic List<ValueBox> getUseBoxes()
AbstractUnitgetUseBoxes in interface UnitgetUseBoxes in class AbstractUnitpublic final List<UnitBox> getUnitBoxes()
AbstractUnitgetUnitBoxes in interface UnitgetUnitBoxes in class AbstractUnitpublic void apply(Switch sw)
AbstractUnitapply in interface Switchableapply in class AbstractUnitpublic void convertToBaf(JimpleToBafContext context, List<Unit> out)
convertToBaf in interface ConvertToBafconvertToBaf in class AbstractStmtpublic boolean fallsThrough()
UnitfallsThrough in interface UnitCopyright © 2024 Soot OSS. All rights reserved.