public class BLookupSwitchInst extends AbstractInst implements LookupSwitchInst
col, line, mTagList
Constructor and Description |
---|
BLookupSwitchInst(Unit defaultTarget,
java.util.List lookupValues,
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 |
getInCount() |
int |
getInMachineCount() |
int |
getLookupValue(int index) |
java.util.List |
getLookupValues() |
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 |
setLookupValue(int index,
int value) |
void |
setLookupValues(java.util.List lookupValues) |
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 BLookupSwitchInst(Unit defaultTarget, java.util.List lookupValues, 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 LookupSwitchInst
public void setDefaultTarget(Unit defaultTarget)
setDefaultTarget
in interface LookupSwitchInst
public UnitBox getDefaultTargetBox()
getDefaultTargetBox
in interface LookupSwitchInst
public void setLookupValues(java.util.List lookupValues)
setLookupValues
in interface LookupSwitchInst
public void setLookupValue(int index, int value)
setLookupValue
in interface LookupSwitchInst
public int getLookupValue(int index)
getLookupValue
in interface LookupSwitchInst
public java.util.List getLookupValues()
getLookupValues
in interface LookupSwitchInst
public int getTargetCount()
getTargetCount
in interface LookupSwitchInst
public Unit getTarget(int index)
getTarget
in interface LookupSwitchInst
public void setTarget(int index, Unit target)
setTarget
in interface LookupSwitchInst
public void setTargets(java.util.List<Unit> targets)
setTargets
in interface LookupSwitchInst
public UnitBox getTargetBox(int index)
getTargetBox
in interface LookupSwitchInst
public java.util.List getTargets()
getTargets
in interface LookupSwitchInst
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