com.caucho.quercus.statement
Class ForStatement

java.lang.Object
  extended by com.caucho.quercus.statement.Statement
      extended by com.caucho.quercus.statement.ForStatement
Direct Known Subclasses:
ProForStatement

public class ForStatement
extends Statement

Represents a for statement.


Field Summary
protected  Statement _block
           
protected  Expr _incr
           
protected  Expr _init
           
protected  java.lang.String _label
           
protected  Expr _test
           
 
Fields inherited from class com.caucho.quercus.statement.Statement
BREAK_FALL_THROUGH, FALL_THROUGH, RETURN
 
Constructor Summary
ForStatement(Location location, Expr init, Expr test, Expr incr, Statement block, java.lang.String label)
           
 
Method Summary
 Value execute(Env env)
           
 boolean isLoop()
           
 
Methods inherited from class com.caucho.quercus.statement.Statement
fallThrough, getLocation, getParent, rethrow, rethrow, setParent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_init

protected final Expr _init

_test

protected final Expr _test

_incr

protected final Expr _incr

_block

protected final Statement _block

_label

protected final java.lang.String _label
Constructor Detail

ForStatement

public ForStatement(Location location,
                    Expr init,
                    Expr test,
                    Expr incr,
                    Statement block,
                    java.lang.String label)
Method Detail

isLoop

public boolean isLoop()
Overrides:
isLoop in class Statement

execute

public Value execute(Env env)
Specified by:
execute in class Statement