Class IfStmtNode.IfThen

java.lang.Object
  extended by IfStmtNode.IfThen
Enclosing class:
IfStmtNode

public static class IfStmtNode.IfThen
extends java.lang.Object

A condition and corresponding sequence of statements corresponding to an if/then or elsif/then clause of an if statement.


Field Summary
 java.util.List<StmtNode> body
          The sequence of statements following the "then".
 ExprNode cond
          The condition on the "if" or "elseif".
 
Constructor Summary
IfStmtNode.IfThen(ExprNode cond, java.util.List<StmtNode> body)
          Constructs a new IfThen.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cond

public ExprNode cond
The condition on the "if" or "elseif".


body

public java.util.List<StmtNode> body
The sequence of statements following the "then". May be empty but not null.

Constructor Detail

IfStmtNode.IfThen

public IfStmtNode.IfThen(ExprNode cond,
                         java.util.List<StmtNode> body)
Constructs a new IfThen.

Parameters:
cond - the condition on the "if" or "elseif"
body - the sequence of statements following the "then"