com.caucho.quercus.statement
Class ReturnRefStatement

java.lang.Object
  extended by com.caucho.quercus.statement.Statement
      extended by com.caucho.quercus.statement.ReturnRefStatement
Direct Known Subclasses:
ProReturnRefStatement

public class ReturnRefStatement
extends Statement

Represents a return expression statement in a PHP program.


Field Summary
protected  Expr _expr
           
 
Fields inherited from class com.caucho.quercus.statement.Statement
BREAK_FALL_THROUGH, FALL_THROUGH, RETURN
 
Constructor Summary
ReturnRefStatement(Location location, Expr expr)
          Creates the echo statement.
 
Method Summary
 Value execute(Env env)
          Executes the statement, returning the expression value.
 int fallThrough()
          Returns true if control can go past the statement.
 
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

_expr

protected Expr _expr
Constructor Detail

ReturnRefStatement

public ReturnRefStatement(Location location,
                          Expr expr)
Creates the echo statement.

Method Detail

execute

public Value execute(Env env)
Executes the statement, returning the expression value.

Specified by:
execute in class Statement

fallThrough

public int fallThrough()
Returns true if control can go past the statement.

Overrides:
fallThrough in class Statement