public abstract class AbstractSwitchStmt extends AbstractStmt implements SwitchStmt
| Modifier and Type | Field and Description |
|---|---|
protected UnitBox |
defaultTargetBox |
protected ValueBox |
keyBox |
protected List<UnitBox> |
stmtBoxes |
protected UnitBox[] |
targetBoxes |
boxesPointingToThiscol, line, mTagList| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSwitchStmt(ValueBox keyBox,
UnitBox defaultTargetBox,
UnitBox... targetBoxes) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
branches()
Returns true if execution after this statement does not necessarily continue at the following statement.
|
boolean |
fallsThrough()
Returns true if execution after this statement may continue at the following statement.
|
Unit |
getDefaultTarget() |
UnitBox |
getDefaultTargetBox() |
Value |
getKey() |
ValueBox |
getKeyBox() |
Unit |
getTarget(int index) |
UnitBox |
getTargetBox(int index) |
protected static UnitBox[] |
getTargetBoxesArray(List<? extends Unit> targets,
Function<Unit,UnitBox> stmtBoxWrap) |
int |
getTargetCount() |
List<Unit> |
getTargets() |
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 |
setDefaultTarget(Unit defaultTarget) |
void |
setKey(Value key) |
void |
setTarget(int index,
Unit target) |
void |
setTargets(List<? extends Unit> targets) |
void |
setTargets(Unit[] targets) |
containsArrayRef, containsFieldRef, containsInvokeExpr, convertToBaf, getArrayRef, getArrayRefBox, getFieldRef, getFieldRefBox, getInvokeExpr, getInvokeExprBoxaddBoxPointingToThis, apply, clearUnitBoxes, clone, getBoxesPointingToThis, getDefBoxes, getUseAndDefBoxes, redirectJumpsToThisTo, removeBoxPointingToThisaddAllTagsOf, addTag, getJavaSourceStartColumnNumber, getJavaSourceStartLineNumber, getTag, getTags, hasTag, removeAllTags, removeTagequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTargetForValuecontainsArrayRef, containsFieldRef, containsInvokeExpr, getArrayRef, getArrayRefBox, getFieldRef, getFieldRefBox, getInvokeExpr, getInvokeExprBoxaddBoxPointingToThis, clearUnitBoxes, clone, getBoxesPointingToThis, getDefBoxes, getUseAndDefBoxes, redirectJumpsToThisTo, removeBoxPointingToThis, toStringapplyaddAllTagsOf, addTag, getJavaSourceStartColumnNumber, getJavaSourceStartLineNumber, getTag, getTags, hasTag, removeAllTags, removeTagprotected final ValueBox keyBox
protected final UnitBox defaultTargetBox
protected final UnitBox[] targetBoxes
protected static UnitBox[] getTargetBoxesArray(List<? extends Unit> targets, Function<Unit,UnitBox> stmtBoxWrap)
public final Unit getDefaultTarget()
getDefaultTarget in interface SwitchStmtpublic final void setDefaultTarget(Unit defaultTarget)
setDefaultTarget in interface SwitchStmtpublic final UnitBox getDefaultTargetBox()
getDefaultTargetBox in interface SwitchStmtpublic final Value getKey()
getKey in interface SwitchStmtpublic final void setKey(Value key)
setKey in interface SwitchStmtpublic final ValueBox getKeyBox()
getKeyBox in interface SwitchStmtpublic final List<ValueBox> getUseBoxes()
AbstractUnitgetUseBoxes in interface UnitgetUseBoxes in class AbstractUnitpublic final int getTargetCount()
public final Unit getTarget(int index)
getTarget in interface SwitchStmtpublic final UnitBox getTargetBox(int index)
getTargetBox in interface SwitchStmtpublic final void setTarget(int index,
Unit target)
setTarget in interface SwitchStmtpublic final List<Unit> getTargets()
getTargets in interface SwitchStmtpublic final void setTargets(Unit[] targets)
public final List<UnitBox> getUnitBoxes()
AbstractUnitgetUnitBoxes in interface UnitgetUnitBoxes in class AbstractUnitpublic final boolean fallsThrough()
UnitfallsThrough in interface UnitCopyright © 2024 Soot OSS. All rights reserved.