public class IfStatement extends KeywordStatement
NodeImplBase.Scoped| Constructor and Description |
|---|
IfStatement(JooSymbol symIf,
Expr cond,
Statement ifTrue) |
IfStatement(JooSymbol symIf,
Expr cond,
Statement ifTrue,
JooSymbol symElse,
Statement ifFalse) |
| Modifier and Type | Method and Description |
|---|---|
void |
analyze(AstNode parentNode) |
List<? extends AstNode> |
getChildren() |
Expr |
getCond() |
Statement |
getIfFalse() |
Statement |
getIfTrue() |
JooSymbol |
getSymElse() |
void |
scope(Scope scope) |
void |
visit(AstVisitor visitor) |
getSymbol, getSymKeywordisClassMember, isStatic, setClassMemberanalyze, getParentNode, makeChildren, scope, withNewDeclarationScope, withNewLabelScopepublic List<? extends AstNode> getChildren()
getChildren in interface AstNodegetChildren in class NodeImplBasepublic void visit(AstVisitor visitor) throws IOException
IOExceptionpublic void scope(Scope scope)
public void analyze(AstNode parentNode)
analyze in interface AstNodeanalyze in class NodeImplBasepublic Expr getCond()
public Statement getIfTrue()
public JooSymbol getSymElse()
public Statement getIfFalse()
Copyright © 2002–2019 CoreMedia AG. All rights reserved.