com.caucho.quercus.statement
Class Statement

java.lang.Object
  extended by com.caucho.quercus.statement.Statement
Direct Known Subclasses:
BlockStatement, BreakStatement, ClassDefStatement, ClassStaticStatement, ContinueStatement, DoStatement, EchoStatement, ExprStatement, ForeachStatement, ForStatement, FunctionDefStatement, GlobalStatement, IfStatement, NullStatement, ReturnRefStatement, ReturnStatement, StaticStatement, SwitchStatement, TextStatement, ThrowStatement, TryStatement, VarGlobalStatement, WhileStatement

public abstract class Statement
extends java.lang.Object

Represents a PHP statement


Field Summary
static int BREAK_FALL_THROUGH
           
static int FALL_THROUGH
           
static int RETURN
           
 
Constructor Summary
protected Statement()
           
protected Statement(Location location)
           
 
Method Summary
abstract  Value execute(Env env)
           
 int fallThrough()
          Returns true if the statement can fallthrough.
 Location getLocation()
           
 Statement getParent()
           
 boolean isLoop()
           
protected  void rethrow(java.lang.Throwable t)
           
protected
<E extends java.lang.Throwable>
void
rethrow(java.lang.Throwable t, java.lang.Class<E> cl)
           
 void setParent(Statement parent)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FALL_THROUGH

public static final int FALL_THROUGH
See Also:
Constant Field Values

BREAK_FALL_THROUGH

public static final int BREAK_FALL_THROUGH
See Also:
Constant Field Values

RETURN

public static final int RETURN
See Also:
Constant Field Values
Constructor Detail

Statement

protected Statement()

Statement

protected Statement(Location location)
Method Detail

getLocation

public final Location getLocation()

isLoop

public boolean isLoop()

getParent

public final Statement getParent()

setParent

public final void setParent(Statement parent)

execute

public abstract Value execute(Env env)

fallThrough

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


rethrow

protected final void rethrow(java.lang.Throwable t)
                      throws java.lang.Throwable
Throws:
java.lang.Throwable

rethrow

protected final <E extends java.lang.Throwable> void rethrow(java.lang.Throwable t,
                                                             java.lang.Class<E> cl)
                      throws E extends java.lang.Throwable
Throws:
E extends java.lang.Throwable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object