public class JLookupSwitchStmt extends AbstractStmt implements LookupSwitchStmt
| Modifier and Type | Field and Description |
|---|---|
protected UnitBox[] |
targetBoxes |
emptyList| Modifier | Constructor and Description |
|---|---|
protected |
JLookupSwitchStmt(ValueBox keyBox,
java.util.List lookupValues,
UnitBox[] targetBoxes,
UnitBox defaultTargetBox) |
|
JLookupSwitchStmt(Value key,
java.util.List<java.lang.Object> lookupValues,
java.util.List<java.lang.Object> targets,
UnitBox defaultTarget)
Constructs a new JLookupSwitchStmt.
|
|
JLookupSwitchStmt(Value key,
java.util.List lookupValues,
java.util.List targets,
Unit defaultTarget)
Constructs a new JLookupSwitchStmt.
|
| 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() |
Value |
getKey() |
ValueBox |
getKeyBox() |
int |
getLookupValue(int index) |
java.util.List |
getLookupValues() |
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.
|
java.util.List |
getUseBoxes()
Returns a list of Boxes containing Values used in this Unit.
|
void |
setDefaultTarget(Unit defaultTarget) |
void |
setKey(Value key) |
void |
setLookupValue(int index,
int value) |
void |
setLookupValues(java.util.List lookupValues) |
void |
setTarget(int index,
Unit target) |
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, 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, removeTagprotected UnitBox[] targetBoxes
public JLookupSwitchStmt(Value key, java.util.List lookupValues, java.util.List targets, Unit defaultTarget)
public JLookupSwitchStmt(Value key, java.util.List<java.lang.Object> lookupValues, 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 LookupSwitchStmtpublic void setDefaultTarget(Unit defaultTarget)
setDefaultTarget in interface LookupSwitchStmtpublic UnitBox getDefaultTargetBox()
getDefaultTargetBox in interface LookupSwitchStmtpublic Value getKey()
getKey in interface LookupSwitchStmtpublic void setKey(Value key)
setKey in interface LookupSwitchStmtpublic ValueBox getKeyBox()
getKeyBox in interface LookupSwitchStmtpublic void setLookupValues(java.util.List lookupValues)
setLookupValues in interface LookupSwitchStmtpublic void setLookupValue(int index,
int value)
setLookupValue in interface LookupSwitchStmtpublic int getLookupValue(int index)
getLookupValue in interface LookupSwitchStmtpublic java.util.List getLookupValues()
getLookupValues in interface LookupSwitchStmtpublic int getTargetCount()
getTargetCount in interface LookupSwitchStmtpublic Unit getTarget(int index)
getTarget in interface LookupSwitchStmtpublic UnitBox getTargetBox(int index)
getTargetBox in interface LookupSwitchStmtpublic void setTarget(int index,
Unit target)
setTarget in interface LookupSwitchStmtpublic java.util.List getTargets()
getTargets in interface LookupSwitchStmtpublic void setTargets(Unit[] targets)
setTargets in interface LookupSwitchStmtpublic 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.