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, CodeGenerator

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, Ide ide, 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()
           
 VariableDeclaration getDecl()
           
 Expr getExpr()
           
 Ide getIde()
           
 JooSymbol getLParen()
           
 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, generate, 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,
                      Ide ide,
                      JooSymbol symIn,
                      Expr expr,
                      JooSymbol rParen,
                      Statement body)
Method Detail

getSymEach

public JooSymbol getSymEach()

getLParen

public JooSymbol getLParen()

getDecl

public VariableDeclaration getDecl()

getIde

public Ide getIde()

getSymIn

public JooSymbol getSymIn()

getExpr

public Expr getExpr()

getRParen

public JooSymbol getRParen()

getAuxIde

public Ide getAuxIde()

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-2011 CoreMedia AG. All Rights Reserved.