public class JIfStmt extends AbstractStmt implements IfStmt
col, 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.
|
java.lang.Object |
clone()
Returns a deep clone of this object.
|
void |
convertToBaf(JimpleToBafContext context,
java.util.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() |
java.util.List<UnitBox> |
getUnitBoxes()
Returns a list of Boxes containing Units defined in this Unit; typically
branch targets.
|
java.util.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) |
java.lang.String |
toString() |
void |
toString(UnitPrinter up) |
containsArrayRef, containsFieldRef, containsInvokeExpr, getArrayRef, getArrayRefBox, getFieldRef, getFieldRefBox, getInvokeExpr, getInvokeExprBox
addBoxPointingToThis, clearUnitBoxes, getBoxesPointingToThis, getDefBoxes, getUseAndDefBoxes, redirectJumpsToThisTo, removeBoxPointingToThis
addAllTagsOf, addTag, getJavaSourceStartColumnNumber, getJavaSourceStartLineNumber, getTag, getTags, hasTag, removeAllTags, removeTag
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
containsArrayRef, containsFieldRef, containsInvokeExpr, getArrayRef, getArrayRefBox, getFieldRef, getFieldRefBox, getInvokeExpr, getInvokeExprBox
addBoxPointingToThis, clearUnitBoxes, getBoxesPointingToThis, getDefBoxes, getUseAndDefBoxes, redirectJumpsToThisTo, removeBoxPointingToThis
addAllTagsOf, addTag, getJavaSourceStartColumnNumber, getJavaSourceStartLineNumber, getTag, getTags, hasTag, removeAllTags, removeTag
public java.lang.Object clone()
AbstractUnit
clone
in interface Unit
clone
in class AbstractUnit
public java.lang.String toString()
toString
in class java.lang.Object
public void toString(UnitPrinter up)
public Value getCondition()
getCondition
in interface IfStmt
public void setCondition(Value condition)
IfStmt
setCondition
in interface IfStmt
public ValueBox getConditionBox()
getConditionBox
in interface IfStmt
public UnitBox getTargetBox()
getTargetBox
in interface IfStmt
public java.util.List<ValueBox> getUseBoxes()
AbstractUnit
getUseBoxes
in interface Unit
getUseBoxes
in class AbstractUnit
public final java.util.List<UnitBox> getUnitBoxes()
AbstractUnit
getUnitBoxes
in interface Unit
getUnitBoxes
in class AbstractUnit
public void apply(Switch sw)
AbstractUnit
apply
in interface Switchable
apply
in class AbstractUnit
public void convertToBaf(JimpleToBafContext context, java.util.List<Unit> out)
convertToBaf
in interface ConvertToBaf
convertToBaf
in class AbstractStmt
public boolean fallsThrough()
Unit
fallsThrough
in interface Unit