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, getParameters
addBoxPointingToThis, clearUnitBoxes, getBoxesPointingToThis, getDefBoxes, getUseAndDefBoxes, getUseBoxes, redirectJumpsToThisTo, removeBoxPointingToThis
addAllTagsOf, addTag, getJavaSourceStartColumnNumber, getJavaSourceStartLineNumber, getTag, getTags, hasTag, removeAllTags, removeTag
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
containsArrayRef, containsFieldRef, containsInvokeExpr, containsNewExpr, getNetCount, getNetMachineCount
addBoxPointingToThis, clearUnitBoxes, getBoxesPointingToThis, getDefBoxes, getUseAndDefBoxes, getUseBoxes, redirectJumpsToThisTo, removeBoxPointingToThis
addAllTagsOf, addTag, getJavaSourceStartColumnNumber, getJavaSourceStartLineNumber, getTag, getTags, hasTag, removeAllTags, removeTag
public BTableSwitchInst(Unit defaultTarget, int lowIndex, int highIndex, java.util.List targets)
public java.lang.Object clone()
AbstractUnit
clone
in interface Unit
clone
in class AbstractInst
public int getInCount()
getInCount
in interface Inst
getInCount
in class AbstractInst
public int getInMachineCount()
getInMachineCount
in interface Inst
getInMachineCount
in class AbstractInst
public int getOutCount()
getOutCount
in interface Inst
getOutCount
in class AbstractInst
public int getOutMachineCount()
getOutMachineCount
in interface Inst
getOutMachineCount
in class AbstractInst
public Unit getDefaultTarget()
getDefaultTarget
in interface TableSwitchInst
public void setDefaultTarget(Unit defaultTarget)
setDefaultTarget
in interface TableSwitchInst
public UnitBox getDefaultTargetBox()
getDefaultTargetBox
in interface TableSwitchInst
public void setLowIndex(int lowIndex)
setLowIndex
in interface TableSwitchInst
public void setHighIndex(int highIndex)
setHighIndex
in interface TableSwitchInst
public int getLowIndex()
getLowIndex
in interface TableSwitchInst
public int getHighIndex()
getHighIndex
in interface TableSwitchInst
public int getTargetCount()
public Unit getTarget(int index)
getTarget
in interface TableSwitchInst
public void setTarget(int index, Unit target)
setTarget
in interface TableSwitchInst
public void setTargets(java.util.List<Unit> targets)
setTargets
in interface TableSwitchInst
public UnitBox getTargetBox(int index)
getTargetBox
in interface TableSwitchInst
public java.util.List getTargets()
getTargets
in interface TableSwitchInst
public java.lang.String getName()
getName
in class AbstractInst
public java.lang.String toString()
toString
in class AbstractInst
public void toString(UnitPrinter up)
toString
in interface Unit
toString
in class AbstractInst
public java.util.List 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 boolean fallsThrough()
Unit
fallsThrough
in interface Unit
fallsThrough
in class AbstractInst
public boolean branches()
Unit
branches
in interface Unit
branches
in class AbstractInst