com.caucho.quercus.statement
Class TryStatement

java.lang.Object
  extended by com.caucho.quercus.statement.Statement
      extended by com.caucho.quercus.statement.TryStatement
Direct Known Subclasses:
ProTryStatement

public class TryStatement
extends Statement

Represents sequence of statements.


Nested Class Summary
static class TryStatement.Catch
           
 
Field Summary
protected  Statement _block
           
protected  java.util.ArrayList<TryStatement.Catch> _catchList
           
 
Fields inherited from class com.caucho.quercus.statement.Statement
BREAK_FALL_THROUGH, FALL_THROUGH, RETURN
 
Constructor Summary
TryStatement(Location location, Statement block)
           
 
Method Summary
 void addCatch(java.lang.String id, AbstractVarExpr lhs, Statement block)
           
 Value execute(Env env)
           
 
Methods inherited from class com.caucho.quercus.statement.Statement
fallThrough, 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

_block

protected final Statement _block

_catchList

protected final java.util.ArrayList<TryStatement.Catch> _catchList
Constructor Detail

TryStatement

public TryStatement(Location location,
                    Statement block)
Method Detail

addCatch

public void addCatch(java.lang.String id,
                     AbstractVarExpr lhs,
                     Statement block)

execute

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