public class ArrayGetExpr extends AbstractVarExpr
Modifier and Type | Field and Description |
---|---|
protected Expr |
_expr |
protected Expr |
_index |
COMPILE_ARG_MAX, NULL_ARGS
Constructor and Description |
---|
ArrayGetExpr(Expr expr,
Expr index) |
ArrayGetExpr(Location location,
Expr expr,
Expr index) |
Modifier and Type | Method and Description |
---|---|
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,
Expr valueExpr)
Evaluates the expression.
|
Value |
evalAssignRef(Env env,
Value value)
Assign the variable with a new reference value.
|
Value |
evalAssignValue(Env env,
Expr valueExpr)
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 |
evalEmpty(Env env)
Evaluates as an empty() expression.
|
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() |
assign, createAssign, createAssignRef, createCopy, createRef, createUnset, evalAssignValue, evalRef, isVar
canRead, createAssignFrom, createCall, createClassConst, createClassConst, createClassField, createClassField, createDeref, createFieldGet, createFieldGet, createIsset, equals, evalArgs, evalArrayAssign, evalArrayAssignRef, evalArrayAssignRef, evalArrayAssignTail, evalBoolean, evalChar, evalConstant, evalConstantPrefix, evalConstantSuffix, evalDouble, evalIssetValue, evalLong, evalPostIncrement, evalPreIncrement, evalQuercusClass, evalString, evalStringValue, evalTop, evalUnsetArray, evalValue, getFileName, getFunctionLocation, getLine, getLocation, getLocationLine, isArray, isAssign, isBoolean, isConstant, isDouble, isFalse, isLiteral, isLong, isNumber, isRef, isString, isTrue, print
public Expr getExpr()
public Expr getIndex()
public Value eval(Env env)
eval
in class AbstractVarExpr
env
- the calling environment.public Value evalCopy(Env env)
evalCopy
in class AbstractVarExpr
env
- the calling environment.public Value evalArray(Env env)
evalArray
in class AbstractVarExpr
env
- the calling environment.public Value evalObject(Env env)
evalObject
in class AbstractVarExpr
env
- the calling environment.public Value evalArg(Env env, boolean isTop)
evalArg
in class AbstractVarExpr
env
- the calling environment.public Var evalVar(Env env)
evalVar
in class AbstractVarExpr
env
- the calling environment.public Value evalAssignValue(Env env, Expr valueExpr)
evalAssignValue
in class Expr
env
- the calling environment.public Value evalAssignRef(Env env, Expr valueExpr)
evalAssignRef
in class Expr
env
- the calling environment.public Value evalAssignRef(Env env, Value value)
AbstractVarExpr
evalAssignRef
in class AbstractVarExpr
env
- the calling environment.public boolean evalIsset(Env env)
public void evalUnset(Env env)
evalUnset
in class AbstractVarExpr
env
- the calling environment.public boolean evalEmpty(Env env)