janino.net

org.codehaus.janino
Class Java.ForStatement

java.lang.Object
  extended by org.codehaus.janino.Java.Located
      extended by org.codehaus.janino.Java.Statement
          extended by org.codehaus.janino.Java.BreakableStatement
              extended by org.codehaus.janino.Java.ContinuableStatement
                  extended by org.codehaus.janino.Java.ForStatement
All Implemented Interfaces:
Java.BlockStatement, Java.Locatable, Java.Scope
Enclosing class:
Java

public static final class Java.ForStatement
extends Java.ContinuableStatement

Representation of a JLS7 14.14.1 'basic FOR statement'.


Field Summary
 Java.Rvalue optionalCondition
          The optional 'condition' part of the 'basic FOR statement'.
 Java.BlockStatement optionalInit
          The optional 'init' part of the 'basic FOR statement'.
 Java.Rvalue[] optionalUpdate
          The optional 'update' part of the 'basic FOR statement'.
 
Fields inherited from class org.codehaus.janino.Java.ContinuableStatement
body, whereToContinue
 
Fields inherited from class org.codehaus.janino.Java.Statement
localVariables
 
Fields inherited from class org.codehaus.janino.Java.Located
NOWHERE
 
Constructor Summary
Java.ForStatement(Location location, Java.BlockStatement optionalInit, Java.Rvalue optionalCondition, Java.Rvalue[] optionalUpdate, Java.BlockStatement body)
           
 
Method Summary
 void accept(Visitor.BlockStatementVisitor visitor)
          Invokes the 'visit...()' method of Visitor.BlockStatementVisitor for the concrete Java.BlockStatement type.
 String toString()
           
 
Methods inherited from class org.codehaus.janino.Java.Statement
findLocalVariable, getEnclosingScope, setEnclosingScope
 
Methods inherited from class org.codehaus.janino.Java.Located
getLocation, throwCompileException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.codehaus.janino.Java.Locatable
getLocation, throwCompileException
 

Field Detail

optionalInit

public final Java.BlockStatement optionalInit
The optional 'init' part of the 'basic FOR statement'.


optionalCondition

public final Java.Rvalue optionalCondition
The optional 'condition' part of the 'basic FOR statement'.


optionalUpdate

public final Java.Rvalue[] optionalUpdate
The optional 'update' part of the 'basic FOR statement'.

Constructor Detail

Java.ForStatement

public Java.ForStatement(Location location,
                         Java.BlockStatement optionalInit,
                         Java.Rvalue optionalCondition,
                         Java.Rvalue[] optionalUpdate,
                         Java.BlockStatement body)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

accept

public void accept(Visitor.BlockStatementVisitor visitor)
Description copied from interface: Java.BlockStatement
Invokes the 'visit...()' method of Visitor.BlockStatementVisitor for the concrete Java.BlockStatement type.


janino.net