Stmt
::= Condition:Expr
Then:Stmt
[Else:Stmt
];- Type Hierarchy:
java.lang.Object
beaver.Symbol
AST.ASTNode<ASTNode>
AST.Stmt
AST.IfStmt
- All Implemented Interfaces:
- java.lang.Cloneable, java.lang.Iterable<ASTNode>
|
|||||||
FRAMES NO FRAMES |
Java1.4Frontend/java.ast
at line 207
Java1.4Frontend/NodeConstructors.jrag
at line 66
Java1.4Frontend/NodeConstructors.jrag
at line 70
public IfStmt()
syn boolean canCompleteNormally()
canCompleteNormally
in class Stmt
Java1.4Frontend/UnreachableStatements.jrag
at line 141
syn boolean definesLabel()
definesLabel
in class ASTNode<ASTNode>
Java1.4Backend/CreateBCode.jrag
at line 946
syn int else_branch_label()
Java1.4Backend/CreateBCode.jrag
at line 1322
syn int then_branch_label()
Java1.4Backend/CreateBCode.jrag
at line 1323
syn boolean modifiedInScope(Variable var)
modifiedInScope
in class Stmt
Java7Frontend/PreciseRethrow.jrag
at line 55
public void flushCache()
flushCache
in class Stmt
public void flushCollectionCache()
flushCollectionCache
in class Stmt
public void toString(java.lang.StringBuffer s)
public void typeCheck()
public void createBCode(CodeGeneration gen)
createBCode
in class Stmt
Java1.4Backend/CreateBCode.jrag
at line 1324
public void init$Children()
init$Children
in class Stmt
protected int numChildren()
numChildren
in class Stmt
public boolean mayHaveRewrite()
mayHaveRewrite
in class Stmt
public void setCondition(Expr node)
node
- The new node to replace the Condition child.public Expr getCondition()
public Expr getConditionNoTransform()
This method does not invoke AST transformations.
node
- The new node to replace the Then child.public Stmt getThenNoTransform()
This method does not invoke AST transformations.
public void setElseOpt(Opt<Stmt> opt)
Opt
node containing the child Else, not the actual child!opt
- The new node to be used as the optional node for the Else child.public boolean hasElse()
true
if the optional Else child exists, false
if it does not.null
otherwise.node
- The new node to be used as the Else child.public Opt<Stmt> getElseOpt()
public Opt<Stmt> getElseOptNoTransform()
Opt
node containing the child Else, not the actual child!
This method does not invoke AST transformations.
public boolean Define_boolean_isDAbefore(ASTNode caller, ASTNode child, Variable v)
Define_boolean_isDAbefore
in class ASTNode<ASTNode>
Java1.4Frontend/DefiniteAssignment.jrag
at line 528
public boolean Define_boolean_isDUbefore(ASTNode caller, ASTNode child, Variable v)
Define_boolean_isDUbefore
in class ASTNode<ASTNode>
Java1.4Frontend/DefiniteAssignment.jrag
at line 997
public boolean Define_boolean_reachable(ASTNode caller, ASTNode child)
Define_boolean_reachable
in class ASTNode<ASTNode>
Java1.4Frontend/UnreachableStatements.jrag
at line 144
public boolean Define_boolean_reportUnreachable(ASTNode caller, ASTNode child)
Define_boolean_reportUnreachable
in class ASTNode<ASTNode>
Java1.4Frontend/UnreachableStatements.jrag
at line 150
public int Define_int_condition_false_label(ASTNode caller, ASTNode child)
Define_int_condition_false_label
in class ASTNode<ASTNode>
Java1.4Backend/CreateBCode.jrag
at line 963
public int Define_int_condition_true_label(ASTNode caller, ASTNode child)
Define_int_condition_true_label
in class ASTNode<ASTNode>
Java1.4Backend/CreateBCode.jrag
at line 964
protected java.util.Map isDAafter_Variable_values
protected java.util.Map isDUafter_Variable_values
protected boolean canCompleteNormally_computed
protected boolean canCompleteNormally_value
protected boolean else_branch_label_computed
protected int else_branch_label_value
protected boolean then_branch_label_computed
protected int then_branch_label_value
|
|||||||
FRAMES NO FRAMES |