|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.quercus.expr.Expr
com.caucho.quercus.expr.AbstractVarExpr
com.caucho.quercus.expr.ArrayGetExpr
public class ArrayGetExpr
Represents a PHP array reference expression.
| Field Summary | |
|---|---|
protected Expr |
_expr
|
protected Expr |
_index
|
| Fields inherited from class com.caucho.quercus.expr.Expr |
|---|
COMPILE_ARG_MAX |
| Constructor Summary | |
|---|---|
ArrayGetExpr(Expr expr,
Expr index)
|
|
ArrayGetExpr(Location location,
Expr expr,
Expr index)
|
|
| Method Summary | |
|---|---|
Value |
eval(Env env)
Evaluates the expression. |
Value |
evalArg(Env env,
boolean isTop)
Evaluates the expression. |
Value |
evalArray(Env env)
Evaluates the expression, creating an array if the value is unset.. |
Value |
evalAssignRef(Env env,
Value value)
Evaluates the expression. |
Value |
evalAssignValue(Env env,
Value value)
Evaluates the expression. |
Value |
evalCopy(Env env)
Evaluates the expression as a copyable result. |
Value |
evalDirty(Env env)
Evaluates the expression, marking as dirty. |
boolean |
evalIsset(Env env)
Evaluates the expression as an isset(). |
Value |
evalObject(Env env)
Evaluates the expression, creating an object if the value is unset. |
void |
evalUnset(Env env)
Evaluates the expression. |
Var |
evalVar(Env env)
Evaluates the expression. |
Expr |
getExpr()
Returns the expr. |
Expr |
getIndex()
Returns the index. |
java.lang.String |
toString()
|
| Methods inherited from class com.caucho.quercus.expr.AbstractVarExpr |
|---|
assign, createAssign, createAssignRef, createCopy, createRef, createUnset, evalRef, isVar |
| Methods inherited from class com.caucho.quercus.expr.Expr |
|---|
canRead, createAssignFrom, createCall, createClassConst, createClassField, createClassField, createDeref, createFieldGet, createFieldGet, createIsset, evalArgs, evalArrayAssign, evalBoolean, evalChar, evalConstant, evalConstantPrefix, evalConstantSuffix, evalDouble, 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 |
|---|
protected final Expr _expr
protected final Expr _index
| Constructor Detail |
|---|
public ArrayGetExpr(Location location,
Expr expr,
Expr index)
public ArrayGetExpr(Expr expr,
Expr index)
| Method Detail |
|---|
public Expr getExpr()
public Expr getIndex()
public Value eval(Env env)
eval in class AbstractVarExprenv - the calling environment.
public Value evalCopy(Env env)
evalCopy in class AbstractVarExprenv - the calling environment.
public Value evalArray(Env env)
evalArray in class AbstractVarExprenv - the calling environment.
public Value evalDirty(Env env)
evalDirty in class Exprenv - the calling environment.
public Value evalObject(Env env)
evalObject in class AbstractVarExprenv - the calling environment.
public Value evalArg(Env env,
boolean isTop)
evalArg in class AbstractVarExprenv - the calling environment.
public Var evalVar(Env env)
evalVar in class AbstractVarExprenv - the calling environment.
public Value evalAssignValue(Env env,
Value value)
evalAssignValue in class AbstractVarExprenv - the calling environment.
public Value evalAssignRef(Env env,
Value value)
evalAssignRef in class AbstractVarExprenv - the calling environment.
public boolean evalIsset(Env env)
evalIsset in class Exprpublic void evalUnset(Env env)
evalUnset in class AbstractVarExprenv - the calling environment.public java.lang.String toString()
toString in class Expr
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||