com.caucho.quercus.expr
Class ClassVirtualMethodVarExpr

java.lang.Object
  extended by com.caucho.quercus.expr.Expr
      extended by com.caucho.quercus.expr.ClassVirtualMethodVarExpr
Direct Known Subclasses:
ClassVirtualMethodVarExprPro

public class ClassVirtualMethodVarExpr
extends Expr

Represents a "static:$foo(...)" method


Field Summary
protected  Expr[] _args
           
protected  Expr[] _fullArgs
           
protected  AbstractFunction _fun
           
protected  boolean _isMethod
           
protected  Expr _methodName
           
 
Fields inherited from class com.caucho.quercus.expr.Expr
COMPILE_ARG_MAX
 
Constructor Summary
ClassVirtualMethodVarExpr(Expr nameExpr, java.util.ArrayList<Expr> args)
           
ClassVirtualMethodVarExpr(Expr nameExpr, Expr[] args)
           
ClassVirtualMethodVarExpr(Location location, Expr methodName, java.util.ArrayList<Expr> args)
           
ClassVirtualMethodVarExpr(Location location, Expr methodName, Expr[] args)
           
 
Method Summary
 Expr createCopy(ExprFactory factory)
          Returns the copy of the value.
 Expr createRef(QuercusParser parser)
          Returns the reference of the value.
 Value eval(Env env)
          Evaluates the expression.
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.quercus.expr.Expr
assign, canRead, createAssign, createAssignFrom, createAssignRef, createCall, createClassConst, createClassField, createClassField, createDeref, createFieldGet, createFieldGet, createIsset, createUnset, evalArg, evalArgs, evalArray, evalArrayAssign, evalAssignRef, evalAssignValue, evalBoolean, evalChar, evalConstant, evalConstantPrefix, evalConstantSuffix, evalCopy, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_methodName

protected final Expr _methodName

_args

protected final Expr[] _args

_fullArgs

protected Expr[] _fullArgs

_fun

protected AbstractFunction _fun

_isMethod

protected boolean _isMethod
Constructor Detail

ClassVirtualMethodVarExpr

public ClassVirtualMethodVarExpr(Location location,
                                 Expr methodName,
                                 java.util.ArrayList<Expr> args)

ClassVirtualMethodVarExpr

public ClassVirtualMethodVarExpr(Location location,
                                 Expr methodName,
                                 Expr[] args)

ClassVirtualMethodVarExpr

public ClassVirtualMethodVarExpr(Expr nameExpr,
                                 java.util.ArrayList<Expr> args)

ClassVirtualMethodVarExpr

public ClassVirtualMethodVarExpr(Expr nameExpr,
                                 Expr[] args)
Method Detail

createRef

public Expr createRef(QuercusParser parser)
Returns the reference of the value.

Overrides:
createRef in class Expr
Parameters:
location -

createCopy

public Expr createCopy(ExprFactory factory)
Returns the copy of the value.

Overrides:
createCopy in class Expr
Parameters:
location -

eval

public Value eval(Env env)
Evaluates the expression.

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

toString

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