Package net.jangaroo.jooc.ast
Class ForStatement
-
- All Implemented Interfaces:
AstNode
public class ForStatement extends ConditionalLoopStatement
- Author:
- Andreas Gawecki
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.jangaroo.jooc.ast.NodeImplBase
NodeImplBase.Scoped
-
-
Field Summary
-
Fields inherited from class net.jangaroo.jooc.ast.NodeImplBase
usesInstanceThis
-
-
Constructor Summary
Constructors Constructor Description ForStatement(JooSymbol symFor, JooSymbol lParen, ForInitializer forInit, JooSymbol symSemicolon1, Expr optCond, JooSymbol symSemicolon2, Expr optStep, JooSymbol rParen, Statement body)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidanalyzeLoopHeader()List<? extends AstNode>getChildren()ForInitializergetForInit()JooSymbolgetLParen()ExprgetOptStep()JooSymbolgetRParen()JooSymbolgetSymSemicolon1()JooSymbolgetSymSemicolon2()voidscope(Scope scope)voidvisit(AstVisitor visitor)-
Methods inherited from class net.jangaroo.jooc.ast.ConditionalLoopStatement
getOptCond
-
Methods inherited from class net.jangaroo.jooc.ast.LoopStatement
analyze, analyzeLoopFooter, getBody, setBody
-
Methods inherited from class net.jangaroo.jooc.ast.KeywordStatement
getSymbol, getSymKeyword
-
Methods inherited from class net.jangaroo.jooc.ast.Directive
isClassMember, isStatic, setClassMember
-
Methods inherited from class net.jangaroo.jooc.ast.NodeImplBase
analyze, getParentNode, isAssignmentLHS, makeChildren, notifyInstanceThisUsed, propagateInstanceThisUsed, scope, usesInstanceThis, withNewDeclarationScope, withNewLabelScope
-
-
-
-
Method Detail
-
getChildren
public List<? extends AstNode> getChildren()
- Specified by:
getChildrenin interfaceAstNode- Overrides:
getChildrenin classConditionalLoopStatement
-
visit
public void visit(AstVisitor visitor) throws IOException
- Throws:
IOException
-
scope
public void scope(Scope scope)
- Specified by:
scopein interfaceAstNode- Overrides:
scopein classConditionalLoopStatement
-
analyzeLoopHeader
protected void analyzeLoopHeader()
- Overrides:
analyzeLoopHeaderin classConditionalLoopStatement
-
getLParen
public JooSymbol getLParen()
-
getForInit
public ForInitializer getForInit()
-
getSymSemicolon1
public JooSymbol getSymSemicolon1()
-
getSymSemicolon2
public JooSymbol getSymSemicolon2()
-
getOptStep
public Expr getOptStep()
-
getRParen
public JooSymbol getRParen()
-
-