com.caucho.quercus.expr
Class EachExpr

java.lang.Object
  extended by com.caucho.quercus.expr.Expr
      extended by com.caucho.quercus.expr.UnaryExpr
          extended by com.caucho.quercus.expr.EachExpr
Direct Known Subclasses:
ProEachExpr

public class EachExpr
extends UnaryExpr

Represents a PHP each expression.


Field Summary
 
Fields inherited from class com.caucho.quercus.expr.UnaryExpr
_expr
 
Fields inherited from class com.caucho.quercus.expr.Expr
COMPILE_ARG_MAX
 
Constructor Summary
EachExpr(Expr expr)
           
EachExpr(Location location, Expr expr)
           
 
Method Summary
 Value eval(Env env)
          Evaluates the expression.
 
Methods inherited from class com.caucho.quercus.expr.UnaryExpr
getExpr
 
Methods inherited from class com.caucho.quercus.expr.Expr
assign, canRead, createAssign, createAssignRef, createCopy, createDeref, createFieldGet, createFieldGet, createIsset, createRef, createUnset, evalArg, evalArray, evalAssign, evalBoolean, evalChar, evalConstant, evalCopy, evalDirty, evalDouble, evalLong, evalObject, evalRef, evalString, evalStringValue, getFileName, getFunctionLocation, getLine, getLocation, getLocationLine, isAssign, isBoolean, isConstant, isDouble, isFalse, isLiteral, isLong, isNumber, isRef, isString, isTrue, print, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EachExpr

public EachExpr(Location location,
                Expr expr)
         throws java.io.IOException
Throws:
java.io.IOException

EachExpr

public EachExpr(Expr expr)
Method Detail

eval

public Value eval(Env env)
Evaluates the expression.

Specified by:
eval in class Expr
Parameters:
env - the calling environment.
Returns:
the expression value.