SandMark version 2.0


sandmark.obfuscate.boolsplitter.dtree
Class InitStmt

java.lang.Object
  |
  +--sandmark.obfuscate.boolsplitter.dtree.Node
        |
        +--sandmark.obfuscate.boolsplitter.dtree.Stmt
              |
              +--sandmark.obfuscate.boolsplitter.dtree.InitStmt
All Implemented Interfaces:
Assign

public class InitStmt
extends Stmt
implements Assign

InitStmt groups together the initialization of local variables (LocalExpr).

See Also:
LocalExpr, Tree.initLocals(java.util.Collection)

Field Summary
(package private)  LocalExpr[] targets
           
 
Fields inherited from class sandmark.obfuscate.boolsplitter.dtree.Node
key, parent, valueNumber
 
Constructor Summary
InitStmt(LocalExpr[] targets)
          Constructor.
 
Method Summary
 java.lang.Object clone()
           
 DefExpr[] defs()
          Returns the local variables (LocalExprs) defined by this InitStmt.
 LocalExpr[] targets()
          Returns the local variables (LocalExprs) initialized by this InitStmt.
 void visit(TreeVisitor visitor)
           
 void visitForceChildren(TreeVisitor visitor)
          Visit the children of this node.
 
Methods inherited from class sandmark.obfuscate.boolsplitter.dtree.Stmt
cleanupOnly
 
Methods inherited from class sandmark.obfuscate.boolsplitter.dtree.Node
block, cleanup, copyInto, 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

targets

LocalExpr[] targets
Constructor Detail

InitStmt

public InitStmt(LocalExpr[] targets)
Constructor.

Parameters:
targets - The instances of LocalExpr that are to be initialized.
Method Detail

targets

public LocalExpr[] targets()
Returns the local variables (LocalExprs) initialized by this InitStmt.


defs

public DefExpr[] defs()
Returns the local variables (LocalExprs) defined by this InitStmt. These are the same local variables that are the targets of the InitStmt.

Specified by:
defs in interface Assign

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