public class JLookupSwitchStmt extends AbstractSwitchStmt implements LookupSwitchStmt
targetBoxes
col, line, mTagList
Modifier | Constructor and Description |
---|---|
protected |
JLookupSwitchStmt(ValueBox keyBox,
java.util.List<IntConstant> lookupValues,
UnitBox[] targetBoxes,
UnitBox defaultTargetBox) |
|
JLookupSwitchStmt(Value key,
java.util.List<IntConstant> lookupValues,
java.util.List<? extends Unit> targets,
Unit defaultTarget)
Constructs a new JLookupSwitchStmt.
|
|
JLookupSwitchStmt(Value key,
java.util.List<IntConstant> lookupValues,
java.util.List<? extends UnitBox> targets,
UnitBox defaultTarget)
Constructs a new JLookupSwitchStmt.
|
Modifier and Type | Method and Description |
---|---|
void |
apply(Switch sw)
Used to implement the Switchable construct.
|
java.lang.Object |
clone()
Returns a deep clone of this object.
|
void |
convertToBaf(JimpleToBafContext context,
java.util.List<Unit> out) |
int |
getLookupValue(int index) |
java.util.List<IntConstant> |
getLookupValues() |
void |
setLookupValue(int index,
int value) |
void |
setLookupValues(java.util.List<IntConstant> lookupValues) |
java.lang.String |
toString() |
void |
toString(UnitPrinter up) |
branches, fallsThrough, getDefaultTarget, getDefaultTargetBox, getKey, getKeyBox, getTarget, getTargetBox, getTargetCount, getTargets, getUnitBoxes, getUseBoxes, setDefaultTarget, setKey, setTarget, setTargets, setTargets
containsArrayRef, containsFieldRef, containsInvokeExpr, getArrayRef, getArrayRefBox, getFieldRef, getFieldRefBox, getInvokeExpr, getInvokeExprBox
addBoxPointingToThis, clearUnitBoxes, getBoxesPointingToThis, getDefBoxes, getUseAndDefBoxes, redirectJumpsToThisTo, removeBoxPointingToThis
addAllTagsOf, addTag, getJavaSourceStartColumnNumber, getJavaSourceStartLineNumber, getTag, getTags, hasTag, removeAllTags, removeTag
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getTargetCount, setTargets
getDefaultTarget, getDefaultTargetBox, getKey, getKeyBox, getTarget, getTargetBox, getTargets, setDefaultTarget, setKey, setTarget
containsArrayRef, containsFieldRef, containsInvokeExpr, getArrayRef, getArrayRefBox, getFieldRef, getFieldRefBox, getInvokeExpr, getInvokeExprBox
addBoxPointingToThis, branches, clearUnitBoxes, fallsThrough, getBoxesPointingToThis, getDefBoxes, getUnitBoxes, getUseAndDefBoxes, getUseBoxes, redirectJumpsToThisTo, removeBoxPointingToThis
addAllTagsOf, addTag, getJavaSourceStartColumnNumber, getJavaSourceStartLineNumber, getTag, getTags, hasTag, removeAllTags, removeTag
public JLookupSwitchStmt(Value key, java.util.List<IntConstant> lookupValues, java.util.List<? extends Unit> targets, Unit defaultTarget)
public JLookupSwitchStmt(Value key, java.util.List<IntConstant> lookupValues, java.util.List<? extends UnitBox> targets, UnitBox defaultTarget)
protected JLookupSwitchStmt(ValueBox keyBox, java.util.List<IntConstant> lookupValues, UnitBox[] targetBoxes, UnitBox defaultTargetBox)
public java.lang.Object clone()
AbstractUnit
clone
in interface Unit
clone
in class AbstractUnit
public java.lang.String toString()
toString
in class java.lang.Object
public void toString(UnitPrinter up)
public void setLookupValues(java.util.List<IntConstant> lookupValues)
setLookupValues
in interface LookupSwitchStmt
public void setLookupValue(int index, int value)
setLookupValue
in interface LookupSwitchStmt
public int getLookupValue(int index)
getLookupValue
in interface LookupSwitchStmt
public java.util.List<IntConstant> getLookupValues()
getLookupValues
in interface LookupSwitchStmt
public void apply(Switch sw)
AbstractUnit
apply
in interface Switchable
apply
in class AbstractUnit
public void convertToBaf(JimpleToBafContext context, java.util.List<Unit> out)
convertToBaf
in interface ConvertToBaf
convertToBaf
in class AbstractStmt