Package net.jangaroo.jooc.ast
Class ForInStatement
-
- All Implemented Interfaces:
AstNode
public class ForInStatement extends LoopStatement
- Author:
- Andreas Gawecki, Frank Wienberg
-
-
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 ForInStatement(JooSymbol symFor, JooSymbol symEach, JooSymbol lParen, Expr lValue, JooSymbol symIn, Expr expr, JooSymbol rParen, Statement body)ForInStatement(JooSymbol symFor, JooSymbol symEach, JooSymbol lParen, VariableDeclaration decl, JooSymbol symIn, Expr expr, JooSymbol rParen, Statement body)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidanalyzeLoopHeader()IdegetAuxIde()List<? extends AstNode>getChildren()VariableDeclarationgetDecl()ExprgetExpr()IdegetExprAuxIde()JooSymbolgetLParen()ExprgetLValue()JooSymbolgetRParen()JooSymbolgetSymEach()JooSymbolgetSymIn()voidscope(Scope scope)voidvisit(AstVisitor visitor)-
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 classLoopStatement
-
getSymEach
public JooSymbol getSymEach()
-
getLParen
public JooSymbol getLParen()
-
getDecl
public VariableDeclaration getDecl()
-
getLValue
public Expr getLValue()
-
getSymIn
public JooSymbol getSymIn()
-
getExpr
public Expr getExpr()
-
getRParen
public JooSymbol getRParen()
-
getAuxIde
public Ide getAuxIde()
-
getExprAuxIde
public Ide getExprAuxIde()
-
visit
public void visit(AstVisitor visitor) throws IOException
- Throws:
IOException
-
scope
public void scope(Scope scope)
- Specified by:
scopein interfaceAstNode- Overrides:
scopein classLoopStatement
-
analyzeLoopHeader
protected void analyzeLoopHeader()
- Specified by:
analyzeLoopHeaderin classLoopStatement
-
-