SandMark version 2.0


sandmark.obfuscate.boolsplitter.dtree
Class IfStmt

java.lang.Object
  |
  +--sandmark.obfuscate.boolsplitter.dtree.Node
        |
        +--sandmark.obfuscate.boolsplitter.dtree.Stmt
              |
              +--sandmark.obfuscate.boolsplitter.dtree.JumpStmt
                    |
                    +--sandmark.obfuscate.boolsplitter.dtree.IfStmt
Direct Known Subclasses:
IfCmpStmt, IfZeroStmt

public abstract class IfStmt
extends JumpStmt

IfStmt is a super class of statements in which some expression is evaluated and one of two branches is taken.

See Also:
IfCmpStmt, IfZeroStmt

Field Summary
(package private)  int comparison
           
static int EQ
           
(package private)  Block falseTarget
           
static int GE
           
static int GT
           
static int LE
           
static int LT
           
static int NE
           
(package private)  Block 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
IfStmt(int comparison, Block trueTarget, Block falseTarget)
          Constructor.
 
Method Summary
 int comparison()
           
 Block falseTarget()
           
 void negate()
          Set the comparison operator for this if statement to its logical negative.
 void setFalseTarget(Block target)
           
 void setTrueTarget(Block target)
           
 Block trueTarget()
           
 
Methods inherited from class sandmark.obfuscate.boolsplitter.dtree.JumpStmt
catchTargets, copyInto
 
Methods inherited from class sandmark.obfuscate.boolsplitter.dtree.Stmt
cleanupOnly, clone
 
Methods inherited from class sandmark.obfuscate.boolsplitter.dtree.Node
block, cleanup, hasParent, key, parent, replaceWith, replaceWith, setKey, setParent, setValueNumber, toString, valueNumber, visit, visitChildren, visitForceChildren, visitOnly
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

comparison

int comparison

trueTarget

Block trueTarget

falseTarget

Block falseTarget

EQ

public static final int EQ
See Also:
Constant Field Values

NE

public static final int NE
See Also:
Constant Field Values

GT

public static final int GT
See Also:
Constant Field Values

GE

public static final int GE
See Also:
Constant Field Values

LT

public static final int LT
See Also:
Constant Field Values

LE

public static final int LE
See Also:
Constant Field Values
Constructor Detail

IfStmt

public IfStmt(int comparison,
              Block trueTarget,
              Block falseTarget)
Constructor.

Parameters:
comparison - Comparison operator used in this if statement.
trueTarget - Basic Block that is executed when if statement is true.
Method Detail

comparison

public int comparison()
Returns:
Comparison operator for this if statement.

negate

public void negate()
Set the comparison operator for this if statement to its logical negative.


setTrueTarget

public void setTrueTarget(Block target)

setFalseTarget

public void setFalseTarget(Block target)

trueTarget

public Block trueTarget()

falseTarget

public Block falseTarget()

SandMark version 2.0

Mon Jun 17 12:30:47 MST 2002