public class BTableSwitchInst extends AbstractInst implements TableSwitchInst
col, line, mTagList| Constructor and Description |
|---|
BTableSwitchInst(Unit defaultTarget,
int lowIndex,
int highIndex,
java.util.List targets) |
| 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() |
int |
getInCount() |
int |
getInMachineCount() |
int |
getLowIndex() |
java.lang.String |
getName() |
int |
getOutCount() |
int |
getOutMachineCount() |
Unit |
getTarget(int index) |
UnitBox |
getTargetBox(int index) |
int |
getTargetCount() |
java.util.List |
getTargets() |
java.util.List |
getUnitBoxes()
Returns a list of Boxes containing Units defined in this Unit; typically
branch targets.
|
void |
setDefaultTarget(Unit defaultTarget) |
void |
setHighIndex(int highIndex) |
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, containsNewExpr, getNetCount, getNetMachineCount, getParametersaddBoxPointingToThis, clearUnitBoxes, getBoxesPointingToThis, getDefBoxes, getUseAndDefBoxes, getUseBoxes, redirectJumpsToThisTo, removeBoxPointingToThisaddAllTagsOf, addTag, getJavaSourceStartColumnNumber, getJavaSourceStartLineNumber, getTag, getTags, hasTag, removeAllTags, removeTagequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcontainsArrayRef, containsFieldRef, containsInvokeExpr, containsNewExpr, getNetCount, getNetMachineCountaddBoxPointingToThis, clearUnitBoxes, getBoxesPointingToThis, getDefBoxes, getUseAndDefBoxes, getUseBoxes, redirectJumpsToThisTo, removeBoxPointingToThisaddAllTagsOf, addTag, getJavaSourceStartColumnNumber, getJavaSourceStartLineNumber, getTag, getTags, hasTag, removeAllTags, removeTagpublic BTableSwitchInst(Unit defaultTarget, int lowIndex, int highIndex, java.util.List targets)
public java.lang.Object clone()
AbstractUnitclone in interface Unitclone in class AbstractInstpublic int getInCount()
getInCount in interface InstgetInCount in class AbstractInstpublic int getInMachineCount()
getInMachineCount in interface InstgetInMachineCount in class AbstractInstpublic int getOutCount()
getOutCount in interface InstgetOutCount in class AbstractInstpublic int getOutMachineCount()
getOutMachineCount in interface InstgetOutMachineCount in class AbstractInstpublic Unit getDefaultTarget()
getDefaultTarget in interface TableSwitchInstpublic void setDefaultTarget(Unit defaultTarget)
setDefaultTarget in interface TableSwitchInstpublic UnitBox getDefaultTargetBox()
getDefaultTargetBox in interface TableSwitchInstpublic void setLowIndex(int lowIndex)
setLowIndex in interface TableSwitchInstpublic void setHighIndex(int highIndex)
setHighIndex in interface TableSwitchInstpublic int getLowIndex()
getLowIndex in interface TableSwitchInstpublic int getHighIndex()
getHighIndex in interface TableSwitchInstpublic int getTargetCount()
public Unit getTarget(int index)
getTarget in interface TableSwitchInstpublic void setTarget(int index,
Unit target)
setTarget in interface TableSwitchInstpublic void setTargets(java.util.List<Unit> targets)
setTargets in interface TableSwitchInstpublic UnitBox getTargetBox(int index)
getTargetBox in interface TableSwitchInstpublic java.util.List getTargets()
getTargets in interface TableSwitchInstpublic java.lang.String getName()
getName in class AbstractInstpublic java.lang.String toString()
toString in class AbstractInstpublic void toString(UnitPrinter up)
toString in interface UnittoString in class AbstractInstpublic 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 UnitfallsThrough in class AbstractInstpublic boolean branches()
Unitbranches in interface Unitbranches in class AbstractInst