Class IfStmt
java.lang.Object
EDU.purdue.cs.bloat.tree.Node
EDU.purdue.cs.bloat.tree.Stmt
EDU.purdue.cs.bloat.tree.JumpStmt
EDU.purdue.cs.bloat.tree.IfStmt
- Direct Known Subclasses:
IfCmpStmt, IfZeroStmt
IfStmt is a super class of statements in which some expression is evaluated
and one of two branches is taken.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoidnegate()Set the comparison operator for this if statement to its logical negative.voidsetFalseTarget(Block target) voidsetTrueTarget(Block target) Methods inherited from class JumpStmt
catchTargets, copyIntoMethods inherited from class Stmt
cleanupOnly, cloneMethods inherited from class Node
block, cleanup, hasParent, key, parent, replaceWith, replaceWith, setKey, setParent, setValueNumber, toString, valueNumber, visit, visitChildren, visitForceChildren, visitOnly
-
Field Details
-
EQ
public static final int EQ- See Also:
-
NE
public static final int NE- See Also:
-
GT
public static final int GT- See Also:
-
GE
public static final int GE- See Also:
-
LT
public static final int LT- See Also:
-
LE
public static final int LE- See Also:
-
-
Constructor Details
-
IfStmt
-
-
Method Details
-
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
-
setFalseTarget
-
trueTarget
-
falseTarget
-