public class JTableSwitchStmt extends AbstractStmt implements TableSwitchStmt
emptyList| 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<java.lang.Object> targets,
UnitBox defaultTarget) |
|
JTableSwitchStmt(Value key,
int lowIndex,
int highIndex,
java.util.List targets,
Unit 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.
|
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) |
java.util.List |
getTargets() |
java.util.List |
getUnitBoxes()
Returns a list of Boxes containing Units defined in this Unit; typically
branch targets.
|
java.util.List |
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<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, 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, getTag, getTags, hasTag, removeAllTags, removeTagpublic JTableSwitchStmt(Value key, int lowIndex, int highIndex, java.util.List targets, Unit defaultTarget)
public JTableSwitchStmt(Value key, int lowIndex, int highIndex, java.util.List<java.lang.Object> 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 Unit getDefaultTarget()
getDefaultTarget in interface TableSwitchStmtpublic void setDefaultTarget(Unit defaultTarget)
setDefaultTarget in interface TableSwitchStmtpublic UnitBox getDefaultTargetBox()
getDefaultTargetBox in interface TableSwitchStmtpublic Value getKey()
getKey in interface TableSwitchStmtpublic void setKey(Value key)
setKey in interface TableSwitchStmtpublic ValueBox getKeyBox()
getKeyBox in interface TableSwitchStmtpublic 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 java.util.List getTargets()
getTargets in interface TableSwitchStmtpublic Unit getTarget(int index)
getTarget in interface TableSwitchStmtpublic void setTarget(int index,
Unit target)
setTarget in interface TableSwitchStmtpublic void setTargets(java.util.List<Unit> targets)
setTargets in interface TableSwitchStmtpublic UnitBox getTargetBox(int index)
getTargetBox in interface TableSwitchStmtpublic java.util.List getUseBoxes()
AbstractUnitgetUseBoxes in interface UnitgetUseBoxes in class AbstractUnitpublic java.util.List getUnitBoxes()
AbstractUnitgetUnitBoxes in interface UnitgetUnitBoxes in class AbstractUnitpublic void apply(Switch sw)
AbstractUnitapply in interface Switchableapply in class AbstractUnitpublic boolean fallsThrough()
UnitfallsThrough in interface UnitCopyright © 2012-2019 RoboVM AB. All Rights Reserved.