net.jangaroo.jooc.ast
Class ForInStatement

java.lang.Object
  extended by net.jangaroo.jooc.ast.NodeImplBase
      extended by net.jangaroo.jooc.ast.Directive
          extended by net.jangaroo.jooc.ast.Statement
              extended by net.jangaroo.jooc.ast.KeywordStatement
                  extended by net.jangaroo.jooc.ast.LoopStatement
                      extended by net.jangaroo.jooc.ast.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
 
Constructor Summary
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
protected  void analyzeLoopHeader()
           
 Ide getAuxIde()
           
 List<? extends AstNode> getChildren()
           
 VariableDeclaration getDecl()
           
 Expr getExpr()
           
 Ide getExprAuxIde()
           
 JooSymbol getLParen()
           
 Expr getLValue()
           
 JooSymbol getRParen()
           
 JooSymbol getSymEach()
           
 JooSymbol getSymIn()
           
 void scope(Scope scope)
           
 void visit(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, makeChildren, scope, withNewDeclarationScope, withNewLabelScope
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForInStatement

public ForInStatement(JooSymbol symFor,
                      JooSymbol symEach,
                      JooSymbol lParen,
                      VariableDeclaration decl,
                      JooSymbol symIn,
                      Expr expr,
                      JooSymbol rParen,
                      Statement body)

ForInStatement

public ForInStatement(JooSymbol symFor,
                      JooSymbol symEach,
                      JooSymbol lParen,
                      Expr lValue,
                      JooSymbol symIn,
                      Expr expr,
                      JooSymbol rParen,
                      Statement body)
Method Detail

getChildren

public List<? extends AstNode> getChildren()
Specified by:
getChildren in interface AstNode
Overrides:
getChildren in class LoopStatement

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:
scope in interface AstNode
Overrides:
scope in class LoopStatement

analyzeLoopHeader

protected void analyzeLoopHeader()
Specified by:
analyzeLoopHeader in class LoopStatement


Copyright © 2002-2012 CoreMedia AG. All Rights Reserved.