com.caucho.quercus.expr
Class ListHeadExpr

java.lang.Object
  extended by com.caucho.quercus.expr.Expr
      extended by com.caucho.quercus.expr.ListHeadExpr
Direct Known Subclasses:
ListHeadExprPro

public class ListHeadExpr
extends Expr

Represents a list assignment expression.


Field Summary
protected  Value[] _keyList
           
protected  Expr[] _varList
           
 
Fields inherited from class com.caucho.quercus.expr.Expr
COMPILE_ARG_MAX
 
Constructor Summary
ListHeadExpr(java.util.ArrayList<Expr> varList)
           
 
Method Summary
 Value eval(Env env)
          Evaluates the expression.
 Value evalAssignEachValue(Env env, Value value)
           
 Value evalAssignValue(Env env, Value value)
          Evaluates the expression.
 boolean evalEachBoolean(Env env, Value value)
           
 Expr[] getVarList()
           
 
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, evalArg, evalArgs, evalArray, evalArrayAssign, evalAssignRef, 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, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_varList

protected final Expr[] _varList

_keyList

protected final Value[] _keyList
Constructor Detail

ListHeadExpr

public ListHeadExpr(java.util.ArrayList<Expr> varList)
Method Detail

getVarList

public Expr[] getVarList()

eval

public Value eval(Env env)
Evaluates the expression.

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

evalAssignValue

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

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

evalAssignEachValue

public Value evalAssignEachValue(Env env,
                                 Value value)

evalEachBoolean

public boolean evalEachBoolean(Env env,
                               Value value)