|
||||||||||
| 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 Unitclone in class AbstractUnit
protected java.lang.String toString(boolean isBrief,
java.util.Map stmtToName,
java.lang.String indentation)
AbstractUnit
toString in class AbstractUnitpublic 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 LookupSwitchStmt
public 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 LookupSwitchStmt
public 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()
Unit
getUseBoxes in interface UnitgetUseBoxes in class AbstractUnitpublic java.util.List getUnitBoxes()
Unit
getUnitBoxes in interface UnitgetUnitBoxes in class AbstractUnitpublic void apply(Switch sw)
Switchable
apply in interface Switchableapply in class AbstractUnit
public void convertToBaf(JimpleToBafContext context,
java.util.List out)
convertToBaf in interface ConvertToBafconvertToBaf in class AbstractStmtpublic boolean fallsThrough()
Unit
fallsThrough in interface Unitpublic boolean branches()
Unit
branches in interface Unit
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||