net.jangaroo.jooc.ast
Class ForStatement

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.ConditionalLoopStatement
                          extended by net.jangaroo.jooc.ast.ForStatement
All Implemented Interfaces:
AstNode, CodeGenerator

public class ForStatement
extends ConditionalLoopStatement

Author:
Andreas Gawecki

Nested Class Summary
 
Nested classes/interfaces inherited from class net.jangaroo.jooc.ast.NodeImplBase
NodeImplBase.Scoped
 
Constructor Summary
ForStatement(JooSymbol symFor, JooSymbol lParen, ForInitializer forInit, JooSymbol symSemicolon1, Expr optCond, JooSymbol symSemicolon2, Expr optStep, JooSymbol rParen, Statement body)
           
 
Method Summary
protected  void analyzeLoopHeader()
           
 ForInitializer getForInit()
           
 JooSymbol getLParen()
           
 Expr getOptStep()
           
 JooSymbol getRParen()
           
 JooSymbol getSymSemicolon1()
           
 JooSymbol getSymSemicolon2()
           
 void scope(Scope scope)
           
 void visit(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, generate, scope, withNewDeclarationScope, withNewLabelScope
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForStatement

public ForStatement(JooSymbol symFor,
                    JooSymbol lParen,
                    ForInitializer forInit,
                    JooSymbol symSemicolon1,
                    Expr optCond,
                    JooSymbol symSemicolon2,
                    Expr optStep,
                    JooSymbol rParen,
                    Statement body)
Method Detail

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 ConditionalLoopStatement

analyzeLoopHeader

protected void analyzeLoopHeader()
Overrides:
analyzeLoopHeader in class ConditionalLoopStatement

getLParen

public JooSymbol getLParen()

getForInit

public ForInitializer getForInit()

getSymSemicolon1

public JooSymbol getSymSemicolon1()

getSymSemicolon2

public JooSymbol getSymSemicolon2()

getOptStep

public Expr getOptStep()

getRParen

public JooSymbol getRParen()


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