sandmark.obfuscate.boolsplitter.dtree
Class SwitchStmt
java.lang.Object
|
+--sandmark.obfuscate.boolsplitter.dtree.Node
|
+--sandmark.obfuscate.boolsplitter.dtree.Stmt
|
+--sandmark.obfuscate.boolsplitter.dtree.JumpStmt
|
+--sandmark.obfuscate.boolsplitter.dtree.SwitchStmt
- public class SwitchStmt
- extends JumpStmt
SwitchStmt represents a switch statement.
Methods inherited from class sandmark.obfuscate.boolsplitter.dtree.Stmt |
cleanupOnly |
Methods inherited from class sandmark.obfuscate.boolsplitter.dtree.Node |
block, cleanup, hasParent, key, parent, replaceWith, replaceWith, setKey, setParent, setValueNumber, toString, valueNumber, visitChildren, visitOnly |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
index
Expr index
defaultTarget
Block defaultTarget
targets
Block[] targets
values
int[] values
SwitchStmt
public SwitchStmt(Expr index,
Block defaultTarget,
Block[] targets,
int[] values)
- Constructor.
- Parameters:
index
- The expression on which the switch is made.defaultTarget
- The code to be executed if index is not contained in values.targets
- The code to be executed for each value in values.values
- The interesting values that index can have. That is, the values
of index in which a non-default target is executed.
index
public Expr index()
setDefaultTarget
public void setDefaultTarget(Block block)
defaultTarget
public Block defaultTarget()
targets
public Block[] targets()
values
public int[] values()
visitForceChildren
public void visitForceChildren(TreeVisitor visitor)
- Description copied from class:
Node
- Visit the children of this node. Not all Nodes will have children to
visit.
- Specified by:
visitForceChildren
in class Node
visit
public void visit(TreeVisitor visitor)
- Specified by:
visit
in class Node
clone
public java.lang.Object clone()
- Specified by:
clone
in class Stmt