public class JTableSwitchStmt extends AbstractStmt implements TableSwitchStmt
| Modifier and Type | Field and Description |
|---|---|
protected UnitBox[] |
targetBoxes |
col, line| Modifier | Constructor and Description |
|---|---|
protected |
JTableSwitchStmt(ValueBox keyBox,
int lowIndex,
int highIndex,
UnitBox[] targetBoxes,
UnitBox defaultTargetBox) |
|
JTableSwitchStmt(Value key,
int lowIndex,
int highIndex,
java.util.List<? extends Unit> targets,
Unit defaultTarget) |
|
JTableSwitchStmt(Value key,
int lowIndex,
int highIndex,
java.util.List<? extends UnitBox> targets,
UnitBox defaultTarget) |
| 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.
|
Unit |
getDefaultTarget() |
UnitBox |
getDefaultTargetBox() |
int |
getHighIndex() |
Value |
getKey() |
ValueBox |
getKeyBox() |
int |
getLowIndex() |
Unit |
getTarget(int index) |
UnitBox |
getTargetBox(int index) |
int |
getTargetCount() |
java.util.List<Unit> |
getTargets() |
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 |
setDefaultTarget(Unit defaultTarget) |
void |
setHighIndex(int highIndex) |
void |
setKey(Value key) |
void |
setLowIndex(int lowIndex) |
void |
setTarget(int index,
Unit target) |
void |
setTargets(java.util.List<? extends Unit> targets) |
void |
setTargets(Unit[] targets) |
java.lang.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, waitsetTargetsgetDefaultTarget, getDefaultTargetBox, getKey, getKeyBox, getTarget, getTargetBox, getTargets, setDefaultTarget, setKey, setTargetcontainsArrayRef, containsFieldRef, containsInvokeExpr, getArrayRef, getArrayRefBox, getFieldRef, getFieldRefBox, getInvokeExpr, getInvokeExprBoxaddBoxPointingToThis, branches, clearUnitBoxes, fallsThrough, getBoxesPointingToThis, getDefBoxes, getUnitBoxes, getUseAndDefBoxes, getUseBoxes, redirectJumpsToThisTo, removeBoxPointingToThisaddAllTagsOf, addTag, getJavaSourceStartColumnNumber, getJavaSourceStartLineNumber, getTag, getTags, hasTag, removeAllTags, removeTagprotected final UnitBox[] targetBoxes
public JTableSwitchStmt(Value key, int lowIndex, int highIndex, java.util.List<? extends Unit> targets, Unit defaultTarget)
public JTableSwitchStmt(Value key, int lowIndex, int highIndex, java.util.List<? extends UnitBox> targets, UnitBox defaultTarget)
public java.lang.Object clone()
AbstractUnitclone in interface Unitclone in class AbstractUnitpublic java.lang.String toString()
toString in class java.lang.Objectpublic void toString(UnitPrinter up)
public void setLowIndex(int lowIndex)
setLowIndex in interface TableSwitchStmtpublic void setHighIndex(int highIndex)
setHighIndex in interface TableSwitchStmtpublic int getLowIndex()
getLowIndex in interface TableSwitchStmtpublic int getHighIndex()
getHighIndex in interface TableSwitchStmtpublic void apply(Switch sw)
AbstractUnitapply in interface Switchableapply in class AbstractUnitpublic void convertToBaf(JimpleToBafContext context, java.util.List<Unit> out)
convertToBaf in interface ConvertToBafconvertToBaf in class AbstractStmtpublic 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 java.util.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 java.util.List<Unit> getTargets()
getTargets in interface SwitchStmtpublic final void setTargets(java.util.List<? extends Unit> targets)
public final void setTargets(Unit[] targets)
public final java.util.List<UnitBox> getUnitBoxes()
AbstractUnitgetUnitBoxes in interface UnitgetUnitBoxes in class AbstractUnitpublic final boolean fallsThrough()
UnitfallsThrough in interface Unit