public class IfStmt extends Stmt
Constructor and Description |
---|
IfStmt(Expr condition,
Stmt stmt) |
IfStmt(Expr condition,
Stmt stmt,
Stmt elseStmt) |
Modifier and Type | Method and Description |
---|---|
Expr |
getCondition() |
Stmt |
getElseStmt() |
Stmt |
getStmt() |
void |
visit(ASTNodeVisitor v)
Visits the
ASTNode . |
addChild, appendFlag, becomeParentOf, getAttribute, getAttributes, getChildren, getFlags, getLineNumber, getParentNode, getSourceLine, hasAttribute, hasFlag, isMemberAccessChild, isRootNode, setAttribute, setAttributes, setChildren, setFlags, setLineNumber, setMemberAccess, setParentNode, setSourceLine, toString
public IfStmt(Expr condition, Stmt stmt, Stmt elseStmt)
condition
- stmt
- elseStmt
- public void visit(ASTNodeVisitor v) throws EvalException
ASTNode
ASTNode
.visit
in class ASTNode
EvalException
public Expr getCondition()
public Stmt getStmt()
public Stmt getElseStmt()
Copyright © 2010–2015. All rights reserved.