Class IfStmtNode.IfThen
Object
IfStmtNode.IfThen
- Enclosing class:
- IfStmtNode
public static class IfStmtNode.IfThen
- extends Object
A condition and corresponding sequence of statements corresponding to
an if/then or elsif/then clause of an if statement.
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
cond
public ExprNode cond
- The condition on the "if" or "elseif".
body
public List<StmtNode> body
- The sequence of statements following the "then".
May be empty but not null.
IfStmtNode.IfThen
public IfStmtNode.IfThen(ExprNode cond,
List<StmtNode> body)
- Constructs a new IfThen.
- Parameters:
cond
- the condition on the "if" or "elseif"body
- the sequence of statements following the "then"