SandMark version 2.0


sandmark.obfuscate.boolsplitter.dtree
Class IfZeroStmt

java.lang.Object
  |
  +--sandmark.obfuscate.boolsplitter.dtree.Node
        |
        +--sandmark.obfuscate.boolsplitter.dtree.Stmt
              |
              +--sandmark.obfuscate.boolsplitter.dtree.JumpStmt
                    |
                    +--sandmark.obfuscate.boolsplitter.dtree.IfStmt
                          |
                          +--sandmark.obfuscate.boolsplitter.dtree.IfZeroStmt

public class IfZeroStmt
extends IfStmt

IfZeroStmt evaluates an expression and executes one of its two branches depending on whether or not the expression evaluated to zero.


Field Summary
(package private)  Expr expr
           
 
Fields inherited from class sandmark.obfuscate.boolsplitter.dtree.IfStmt
comparison, EQ, falseTarget, GE, GT, LE, LT, NE, trueTarget
 
Fields inherited from class sandmark.obfuscate.boolsplitter.dtree.JumpStmt
catchTargets
 
Fields inherited from class sandmark.obfuscate.boolsplitter.dtree.Node
key, parent, valueNumber
 
Constructor Summary
IfZeroStmt(int comparison, Expr expr, Block trueTarget, Block falseTarget)
          Constructor.
 
Method Summary
 java.lang.Object clone()
           
 Expr expr()
           
 void visit(TreeVisitor visitor)
           
 void visitForceChildren(TreeVisitor visitor)
          Visit the children of this node.
 
Methods inherited from class sandmark.obfuscate.boolsplitter.dtree.IfStmt
comparison, falseTarget, negate, setFalseTarget, setTrueTarget, trueTarget
 
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

expr

Expr expr
Constructor Detail

IfZeroStmt

public IfZeroStmt(int comparison,
                  Expr expr,
                  Block trueTarget,
                  Block falseTarget)
Constructor.

Parameters:
comparison - Comparison operator.
expr - An expression to be evaluated.
trueTarget - Basic Block that is executed if the expression evaluates to zero.
Method Detail

expr

public Expr expr()
Returns:
The expression that is evaluated.

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