com.caucho.quercus.statement
Class WhileStatement

java.lang.Object
  extended by com.caucho.quercus.statement.Statement
      extended by com.caucho.quercus.statement.WhileStatement
Direct Known Subclasses:
ProWhileStatement

public class WhileStatement
extends Statement

Represents a while statement.


Field Summary
protected  Statement _block
           
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
WhileStatement(Location location, Expr test, 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

_test

protected final Expr _test

_block

protected final Statement _block

_label

protected final java.lang.String _label
Constructor Detail

WhileStatement

public WhileStatement(Location location,
                      Expr test,
                      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