com.caucho.quercus.expr
Class AbstractMethodExpr

java.lang.Object
  extended by com.caucho.quercus.expr.Expr
      extended by com.caucho.quercus.expr.AbstractMethodExpr
Direct Known Subclasses:
ClassMethodExpr, ClassMethodVarExpr, ObjectMethodExpr

public abstract class AbstractMethodExpr
extends Expr

Represents a PHP function expression.


Field Summary
 
Fields inherited from class com.caucho.quercus.expr.Expr
COMPILE_ARG_MAX
 
Constructor Summary
protected AbstractMethodExpr(Location location)
           
 
Method Summary
protected  Value eval(Env env, Value qThis, StringValue methodName, int hashCode, Expr[] argExprs)
          Evaluates the expression.
 Value evalArg(Env env, boolean isTop)
          Evaluates the expression as a copy
 Value evalCopy(Env env)
          Evaluates the expression as a copy
 
Methods inherited from class com.caucho.quercus.expr.Expr
assign, canRead, createAssign, createAssignFrom, createAssignRef, createCall, createClassConst, createClassField, createClassField, createCopy, createDeref, createFieldGet, createFieldGet, createIsset, createRef, createUnset, eval, evalArgs, evalArray, evalArrayAssign, evalAssignRef, evalAssignValue, evalBoolean, evalChar, evalConstant, evalConstantPrefix, evalConstantSuffix, evalDirty, evalDouble, evalIsset, evalLong, evalObject, evalPostIncrement, evalPreIncrement, evalRef, evalString, evalStringValue, evalTop, evalUnsetArray, evalValue, evalVar, getFileName, getFunctionLocation, getLine, getLocation, getLocationLine, isArray, isAssign, isBoolean, isConstant, isDouble, isFalse, isLiteral, isLong, isNumber, isRef, isString, isTrue, isVar, print, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractMethodExpr

protected AbstractMethodExpr(Location location)
Method Detail

evalCopy

public Value evalCopy(Env env)
Evaluates the expression as a copy

Overrides:
evalCopy in class Expr
Parameters:
env - the calling environment.
Returns:
the expression value.

evalArg

public Value evalArg(Env env,
                     boolean isTop)
Evaluates the expression as a copy

Overrides:
evalArg in class Expr
Parameters:
env - the calling environment.
Returns:
the expression value.

eval

protected Value eval(Env env,
                     Value qThis,
                     StringValue methodName,
                     int hashCode,
                     Expr[] argExprs)
Evaluates the expression.

Parameters:
env - the calling environment.
Returns:
the expression value.