com.caucho.quercus.expr
Class ClassFieldExpr

java.lang.Object
  extended by com.caucho.quercus.expr.Expr
      extended by com.caucho.quercus.expr.AbstractVarExpr
          extended by com.caucho.quercus.expr.ClassFieldExpr
Direct Known Subclasses:
ClassFieldExprPro

public class ClassFieldExpr
extends AbstractVarExpr

Represents a PHP class field reference A::$foo


Field Summary
protected  java.lang.String _className
           
protected  StringValue _varName
           
 
Fields inherited from class com.caucho.quercus.expr.Expr
COMPILE_ARG_MAX
 
Constructor Summary
ClassFieldExpr(java.lang.String className, java.lang.String varName)
           
 
Method Summary
 Expr createCall(QuercusParser parser, Location location, java.util.ArrayList<Expr> args)
          Creates a function call expression
 Value eval(Env env)
          Evaluates the expression.
 Value evalAssignRef(Env env, Value value)
          Evaluates the expression.
 void evalUnset(Env env)
          Evaluates the expression.
 Var evalVar(Env env)
          Evaluates the expression.
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.quercus.expr.AbstractVarExpr
assign, createAssign, createAssignRef, createCopy, createRef, createUnset, evalArg, evalArray, evalAssignValue, evalCopy, evalObject, evalRef, isVar
 
Methods inherited from class com.caucho.quercus.expr.Expr
canRead, createAssignFrom, createClassConst, createClassField, createClassField, createDeref, createFieldGet, createFieldGet, createIsset, evalArgs, evalArrayAssign, evalBoolean, evalChar, evalConstant, evalConstantPrefix, evalConstantSuffix, evalDirty, evalDouble, evalIsset, evalLong, evalPostIncrement, evalPreIncrement, evalString, evalStringValue, evalTop, evalUnsetArray, evalValue, getFileName, getFunctionLocation, getLine, getLocation, getLocationLine, isArray, isAssign, isBoolean, isConstant, isDouble, isFalse, isLiteral, isLong, isNumber, isRef, isString, isTrue, print
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_className

protected final java.lang.String _className

_varName

protected final StringValue _varName
Constructor Detail

ClassFieldExpr

public ClassFieldExpr(java.lang.String className,
                      java.lang.String varName)
Method Detail

createCall

public Expr createCall(QuercusParser parser,
                       Location location,
                       java.util.ArrayList<Expr> args)
                throws java.io.IOException
Creates a function call expression

Overrides:
createCall in class Expr
Throws:
java.io.IOException

eval

public Value eval(Env env)
Evaluates the expression.

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

evalVar

public Var evalVar(Env env)
Evaluates the expression.

Specified by:
evalVar in class AbstractVarExpr
Parameters:
env - the calling environment.
Returns:
the expression value.

evalAssignRef

public Value evalAssignRef(Env env,
                           Value value)
Evaluates the expression.

Specified by:
evalAssignRef in class AbstractVarExpr
Parameters:
env - the calling environment.
Returns:
the expression value.

evalUnset

public void evalUnset(Env env)
Evaluates the expression.

Specified by:
evalUnset in class AbstractVarExpr
Parameters:
env - the calling environment.

toString

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