public class ThisFieldExpr extends AbstractVarExpr
Modifier and Type | Field and Description |
---|---|
protected boolean |
_isInit |
protected StringValue |
_name |
protected ThisExpr |
_qThis |
COMPILE_ARG_MAX, NULL_ARGS
Constructor and Description |
---|
ThisFieldExpr(Location location,
ThisExpr qThis,
StringValue name) |
Modifier and Type | Method and Description |
---|---|
Expr |
createCall(QuercusParser parser,
Location location,
java.util.ArrayList<Expr> args)
Creates a function call expression
|
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 |
evalArrayAssign(Env env,
Expr indexExpr,
Expr valueExpr)
Evaluates as an array index assign ($a[index] = value).
|
Value |
evalArrayAssignRef(Env env,
Expr indexExpr,
Expr valueExpr)
Evaluates as an array index assign ($a[index] = value).
|
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.
|
Value |
evalObject(Env env)
Evaluates the expression, creating an array if the value is unset..
|
void |
evalUnset(Env env)
Evaluates the expression.
|
Var |
evalVar(Env env)
Evaluates the expression.
|
void |
init() |
java.lang.String |
toString() |
assign, createAssign, createAssignRef, createCopy, createRef, createUnset, evalRef, isVar
canRead, createAssignFrom, createClassConst, createClassConst, createClassField, createClassField, createDeref, createFieldGet, createFieldGet, createIsset, equals, evalArgs, evalArrayAssignRef, evalArrayAssignTail, evalAssignRef, evalAssignValue, evalBoolean, evalChar, evalConstant, evalConstantPrefix, evalConstantSuffix, evalDirty, evalDouble, evalEmpty, evalIsset, 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
protected final ThisExpr _qThis
protected StringValue _name
protected boolean _isInit
public ThisFieldExpr(Location location, ThisExpr qThis, StringValue name)
public Expr createCall(QuercusParser parser, Location location, java.util.ArrayList<Expr> args) throws java.io.IOException
createCall
in class Expr
java.io.IOException
public void init()
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 Var evalVar(Env env)
evalVar
in class AbstractVarExpr
env
- the calling environment.public Value evalArg(Env env, boolean isTop)
evalArg
in class AbstractVarExpr
env
- the calling environment.public Value evalAssignValue(Env env, Value value)
evalAssignValue
in class AbstractVarExpr
env
- the calling environment.public Value evalAssignRef(Env env, Value value)
evalAssignRef
in class AbstractVarExpr
env
- the calling environment.public Value evalArrayAssign(Env env, Expr indexExpr, Expr valueExpr)
evalArrayAssign
in class Expr
public Value evalArrayAssignRef(Env env, Expr indexExpr, Expr valueExpr)
evalArrayAssignRef
in class Expr
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 void evalUnset(Env env)
evalUnset
in class AbstractVarExpr
env
- the calling environment.