com.caucho.quercus.statement
Class BlockStatement

java.lang.Object
  extended by com.caucho.quercus.statement.Statement
      extended by com.caucho.quercus.statement.BlockStatement
Direct Known Subclasses:
ProBlockStatement

public class BlockStatement
extends Statement

Represents sequence of statements.


Field Summary
protected  Statement[] _statements
           
 
Fields inherited from class com.caucho.quercus.statement.Statement
BREAK_FALL_THROUGH, FALL_THROUGH, RETURN
 
Constructor Summary
BlockStatement(Location location, java.util.ArrayList<Statement> statementList)
           
BlockStatement(Location location, Statement[] statements)
           
 
Method Summary
 BlockStatement append(java.util.ArrayList<Statement> statementList)
           
 Value execute(Env env)
           
 int fallThrough()
          Returns true if the statement can fallthrough.
 Statement[] getStatements()
           
 
Methods inherited from class com.caucho.quercus.statement.Statement
getLocation, getParent, isLoop, rethrow, rethrow, setParent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_statements

protected Statement[] _statements
Constructor Detail

BlockStatement

public BlockStatement(Location location,
                      Statement[] statements)

BlockStatement

public BlockStatement(Location location,
                      java.util.ArrayList<Statement> statementList)
Method Detail

append

public BlockStatement append(java.util.ArrayList<Statement> statementList)

getStatements

public Statement[] getStatements()

fallThrough

public int fallThrough()
Returns true if the statement can fallthrough.

Overrides:
fallThrough in class Statement

execute

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