|
||||||||||
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.ObjectFieldExpr
public class ObjectFieldExpr
Represents a PHP field reference.
Field Summary | |
---|---|
protected StringValue |
_name
|
protected Expr |
_objExpr
|
Fields inherited from class com.caucho.quercus.expr.Expr |
---|
COMPILE_ARG_MAX, NULL_ARGS |
Constructor Summary | |
---|---|
ObjectFieldExpr(Expr objExpr,
StringValue name)
|
|
ObjectFieldExpr(Location location,
Expr objExpr,
StringValue name)
|
Method Summary | |
---|---|
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 field is unset. |
Value |
evalAssignRef(Env env,
Value value)
Evaluates the expression. |
Value |
evalDirty(Env env)
Evaluates the expression, with the object expected to be modified, e.g. |
boolean |
evalIsset(Env env)
Evaluates the expression as an isset() statement. |
Value |
evalObject(Env env)
Evaluates the expression, creating an object if the field is unset. |
Value |
evalPostIncrement(Env env,
int incr)
Handles post increments. |
Value |
evalPreIncrement(Env env,
int incr)
Handles post increments. |
void |
evalUnset(Env env)
Evaluates the expression. |
void |
evalUnsetArray(Env env,
Value index)
Evaluates the expression as an array index unset |
Var |
evalVar(Env env)
Evaluates the expression. |
java.lang.String |
toString()
|
Methods inherited from class com.caucho.quercus.expr.AbstractVarExpr |
---|
assign, createAssign, createAssignRef, createCopy, createRef, createUnset, evalAssignValue, evalCopy, evalRef, isVar |
Methods inherited from class com.caucho.quercus.expr.Expr |
---|
canRead, createAssignFrom, createClassConst, createClassField, createClassField, createDeref, createFieldGet, createFieldGet, createIsset, evalArgs, evalArrayAssign, evalArrayAssignTail, evalBoolean, evalChar, evalConstant, evalConstantPrefix, evalConstantSuffix, evalDouble, evalIssetValue, evalLong, evalQuercusClass, evalString, evalStringValue, evalTop, 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 _objExpr
protected final StringValue _name
Constructor Detail |
---|
public ObjectFieldExpr(Location location, Expr objExpr, StringValue name)
public ObjectFieldExpr(Expr objExpr, StringValue name)
Method Detail |
---|
public Expr createCall(QuercusParser parser, Location location, java.util.ArrayList<Expr> args) throws java.io.IOException
createCall
in class Expr
java.io.IOException
public Value eval(Env env)
eval
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 evalDirty(Env env)
Expr
evalDirty
in class Expr
env
- the calling environment.
public Value evalAssignRef(Env env, Value value)
evalAssignRef
in class AbstractVarExpr
env
- the calling environment.
public Value evalPostIncrement(Env env, int incr)
evalPostIncrement
in class Expr
public Value evalPreIncrement(Env env, int incr)
evalPreIncrement
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.public void evalUnsetArray(Env env, Value index)
evalUnsetArray
in class Expr
public java.lang.String toString()
toString
in class Expr
public boolean evalIsset(Env env)
Expr
evalIsset
in class Expr
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |