SandMark version 2.0


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.


Field Summary
(package private)  Block defaultTarget
           
(package private)  Expr index
           
(package private)  Block[] targets
           
(package private)  int[] values
           
 
Fields inherited from class sandmark.obfuscate.boolsplitter.dtree.JumpStmt
catchTargets
 
Fields inherited from class sandmark.obfuscate.boolsplitter.dtree.Node
key, parent, valueNumber
 
Constructor Summary
SwitchStmt(Expr index, Block defaultTarget, Block[] targets, int[] values)
          Constructor.
 
Method Summary
 java.lang.Object clone()
           
 Block defaultTarget()
           
 Expr index()
           
 void setDefaultTarget(Block block)
           
 Block[] targets()
           
 int[] values()
           
 void visit(TreeVisitor visitor)
           
 void visitForceChildren(TreeVisitor visitor)
          Visit the children of this node.
 
Methods inherited from class sandmark.obfuscate.boolsplitter.dtree.JumpStmt
catchTargets, copyInto
 
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
 

Field Detail

index

Expr index

defaultTarget

Block defaultTarget

targets

Block[] targets

values

int[] values
Constructor Detail

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.
Method Detail

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

SandMark version 2.0

Mon Jun 17 12:30:47 MST 2002