com.caucho.quercus.expr
Class FunArrayExpr

java.lang.Object
  extended by com.caucho.quercus.expr.Expr
      extended by com.caucho.quercus.expr.FunArrayExpr
Direct Known Subclasses:
FunArrayExprPro

public class FunArrayExpr
extends Expr

Represents the array function


Field Summary
protected  Expr[] _keys
           
protected  Expr[] _values
           
 
Fields inherited from class com.caucho.quercus.expr.Expr
COMPILE_ARG_MAX
 
Constructor Summary
FunArrayExpr(java.util.ArrayList<Expr> keyList, java.util.ArrayList<Expr> valueList)
           
FunArrayExpr(Expr[] keys, Expr[] values)
           
FunArrayExpr(Location location, java.util.ArrayList<Expr> keyList, java.util.ArrayList<Expr> valueList)
           
FunArrayExpr(Location location, Expr[] keys, Expr[] values)
           
 
Method Summary
 Value eval(Env env)
          Evaluates the expression.
 boolean isArray()
          Returns true if the expression evaluates to an array.
 boolean isConstant()
          Returns true for a constant array.
 java.lang.String toString()
           
 
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, 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, isAssign, isBoolean, 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

_keys

protected final Expr[] _keys

_values

protected final Expr[] _values
Constructor Detail

FunArrayExpr

public FunArrayExpr(Location location,
                    java.util.ArrayList<Expr> keyList,
                    java.util.ArrayList<Expr> valueList)

FunArrayExpr

public FunArrayExpr(Location location,
                    Expr[] keys,
                    Expr[] values)

FunArrayExpr

public FunArrayExpr(java.util.ArrayList<Expr> keyList,
                    java.util.ArrayList<Expr> valueList)

FunArrayExpr

public FunArrayExpr(Expr[] keys,
                    Expr[] values)
Method Detail

isArray

public boolean isArray()
Returns true if the expression evaluates to an array.

Overrides:
isArray in class Expr

isConstant

public boolean isConstant()
Returns true for a constant array.

Overrides:
isConstant in class Expr

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