|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--soot.tagkit.AbstractHost | +--soot.AbstractUnit | +--soot.jimple.internal.AbstractStmt | +--soot.jimple.internal.JLookupSwitchStmt
Field Summary | |
protected UnitBox[] |
targetBoxes
|
Fields inherited from class soot.AbstractUnit |
emptyList |
Constructor Summary | |
protected |
JLookupSwitchStmt(ValueBox keyBox,
java.util.List lookupValues,
UnitBox[] targetBoxes,
UnitBox defaultTargetBox)
|
|
JLookupSwitchStmt(Value key,
java.util.List lookupValues,
java.util.List targets,
Unit defaultTarget)
Constructs a new JLookupSwitchStmt. |
|
JLookupSwitchStmt(Value key,
java.util.List lookupValues,
java.util.List targets,
UnitBox defaultTarget)
Constructs a new JLookupSwitchStmt. |
Method Summary | |
void |
apply(Switch sw)
Called when this object is visited. |
boolean |
branches()
Returns true if execution after this statement is not the following statement. |
java.lang.Object |
clone()
Returns a deep clone of this object. |
void |
convertToBaf(JimpleToBafContext context,
java.util.List out)
|
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)
|
protected java.lang.String |
toString(boolean isBrief,
java.util.Map stmtToName,
java.lang.String indentation)
Returns a textual representation of this object, with the given briefness, Map and indentation. |
Methods inherited from class soot.jimple.internal.AbstractStmt |
containsArrayRef, containsFieldRef, containsInvokeExpr, getArrayRef, getArrayRefBox, getFieldRef, getFieldRefBox, getInvokeExpr, getInvokeExprBox |
Methods inherited from class soot.AbstractUnit |
getBoxesPointingToThis, getDefBoxes, getUseAndDefBoxes, redirectJumpsToThisTo, toBriefString, toBriefString, toBriefString, toBriefString, toString, toString, toString, toString |
Methods inherited from class soot.tagkit.AbstractHost |
addTag, getTag, getTags, hasTag, removeTag |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface soot.jimple.Stmt |
containsArrayRef, containsFieldRef, containsInvokeExpr, getArrayRef, getArrayRefBox, getFieldRef, getFieldRefBox, getInvokeExpr, getInvokeExprBox, toBriefString, toBriefString, toBriefString, toBriefString, toString, toString, toString, toString |
Methods inherited from interface soot.Unit |
getBoxesPointingToThis, getDefBoxes, getUseAndDefBoxes, redirectJumpsToThisTo |
Methods inherited from interface soot.tagkit.Host |
addTag, getTag, getTags, hasTag, removeTag |
Field Detail |
protected UnitBox[] targetBoxes
Constructor Detail |
public JLookupSwitchStmt(Value key, java.util.List lookupValues, java.util.List targets, Unit defaultTarget)
public JLookupSwitchStmt(Value key, java.util.List lookupValues, java.util.List targets, UnitBox defaultTarget)
protected JLookupSwitchStmt(ValueBox keyBox, java.util.List lookupValues, UnitBox[] targetBoxes, UnitBox defaultTargetBox)
Method Detail |
public java.lang.Object clone()
AbstractUnit
clone
in interface Unit
clone
in class AbstractUnit
protected java.lang.String toString(boolean isBrief, java.util.Map stmtToName, java.lang.String indentation)
AbstractUnit
toString
in class AbstractUnit
public Unit getDefaultTarget()
getDefaultTarget
in interface LookupSwitchStmt
public void setDefaultTarget(Unit defaultTarget)
setDefaultTarget
in interface LookupSwitchStmt
public UnitBox getDefaultTargetBox()
getDefaultTargetBox
in interface LookupSwitchStmt
public Value getKey()
getKey
in interface LookupSwitchStmt
public void setKey(Value key)
setKey
in interface LookupSwitchStmt
public ValueBox getKeyBox()
getKeyBox
in interface LookupSwitchStmt
public void setLookupValues(java.util.List 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 getLookupValues()
getLookupValues
in interface LookupSwitchStmt
public int getTargetCount()
getTargetCount
in interface LookupSwitchStmt
public Unit getTarget(int index)
getTarget
in interface LookupSwitchStmt
public UnitBox getTargetBox(int index)
getTargetBox
in interface LookupSwitchStmt
public void setTarget(int index, Unit target)
setTarget
in interface LookupSwitchStmt
public java.util.List getTargets()
getTargets
in interface LookupSwitchStmt
public void setTargets(Unit[] targets)
setTargets
in interface LookupSwitchStmt
public java.util.List getUseBoxes()
Unit
getUseBoxes
in interface Unit
getUseBoxes
in class AbstractUnit
public java.util.List getUnitBoxes()
Unit
getUnitBoxes
in interface Unit
getUnitBoxes
in class AbstractUnit
public void apply(Switch sw)
Switchable
apply
in interface Switchable
apply
in class AbstractUnit
public void convertToBaf(JimpleToBafContext context, java.util.List out)
convertToBaf
in interface ConvertToBaf
convertToBaf
in class AbstractStmt
public boolean fallsThrough()
Unit
fallsThrough
in interface Unit
public boolean branches()
Unit
branches
in interface Unit
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |