|
||||||||||
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
public abstract class AbstractVarExpr
Represents an expression that is assignable
Field Summary |
---|
Fields inherited from class com.caucho.quercus.expr.Expr |
---|
COMPILE_ARG_MAX, NULL_ARGS |
Constructor Summary | |
---|---|
AbstractVarExpr()
|
|
AbstractVarExpr(Location location)
|
Method Summary | |
---|---|
void |
assign(QuercusParser parser)
Marks the value as assigned |
Expr |
createAssign(QuercusParser parser,
Expr value)
Creates the assignment. |
Expr |
createAssignRef(QuercusParser parser,
Expr value)
Creates the assignment. |
Expr |
createCopy(ExprFactory factory)
Creates the copy. |
Expr |
createRef(QuercusParser parser)
Creates the reference |
Statement |
createUnset(ExprFactory factory,
Location location)
Creates the assignment. |
abstract Value |
eval(Env env)
Evaluates the expression, returning a Value. |
Value |
evalArg(Env env,
boolean isTop)
Evaluates the expression as an argument. |
Value |
evalArray(Env env)
Evaluates the expression as an array. |
abstract Value |
evalAssignRef(Env env,
Value value)
Assign the variable with a new reference value. |
Value |
evalAssignValue(Env env,
Value value)
Evaluates the expression. |
Value |
evalCopy(Env env)
Evaluates the expression and copies the result for an assignment. |
Value |
evalObject(Env env)
Evaluates the expression as an object. |
Value |
evalRef(Env env)
Evaluates the expression as a reference when possible. |
abstract void |
evalUnset(Env env)
Evaluates the expression as an argument. |
abstract Var |
evalVar(Env env)
Evaluates the expression as a reference (by RefExpr). |
boolean |
isVar()
Returns true if the expression is a var/left-hand-side. |
Methods inherited from class com.caucho.quercus.expr.Expr |
---|
canRead, createAssignFrom, createCall, createClassConst, createClassField, createClassField, createDeref, createFieldGet, createFieldGet, createIsset, evalArgs, evalArrayAssign, evalArrayAssignTail, evalBoolean, evalChar, evalConstant, evalConstantPrefix, evalConstantSuffix, evalDirty, evalDouble, 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, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractVarExpr(Location location)
public AbstractVarExpr()
Method Detail |
---|
public boolean isVar()
isVar
in class Expr
public void assign(QuercusParser parser)
assign
in class Expr
public Expr createAssign(QuercusParser parser, Expr value)
createAssign
in class Expr
public Expr createAssignRef(QuercusParser parser, Expr value)
createAssignRef
in class Expr
public Expr createRef(QuercusParser parser)
createRef
in class Expr
location
- public Expr createCopy(ExprFactory factory)
createCopy
in class Expr
location
- public Statement createUnset(ExprFactory factory, Location location)
createUnset
in class Expr
public abstract Value eval(Env env)
eval
in class Expr
env
- the calling environment.
public abstract Var evalVar(Env env)
evalVar
in class Expr
env
- the calling environment.
public Value evalRef(Env env)
evalRef
in class Expr
env
- the calling environment.
public Value evalArg(Env env, boolean isTop)
evalArg
in class Expr
env
- the calling environment.
public Value evalCopy(Env env)
evalCopy
in class Expr
env
- the calling environment.
public Value evalArray(Env env)
evalArray
in class Expr
env
- the calling environment.
public Value evalObject(Env env)
evalObject
in class Expr
env
- the calling environment.
public abstract void evalUnset(Env env)
env
- the calling environment.public Value evalAssignValue(Env env, Value value)
evalAssignValue
in class Expr
env
- the calling environment.
public abstract Value evalAssignRef(Env env, Value value)
evalAssignRef
in class Expr
env
- the calling environment.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |