|
||||||||||
| 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 |
| 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, evalBoolean, evalChar, evalConstant, evalConstantPrefix, evalConstantSuffix, evalDirty, evalDouble, evalIsset, 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, 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 Exprpublic 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 Exprpublic Expr createRef(QuercusParser parser)
createRef in class Exprlocation - public Expr createCopy(ExprFactory factory)
createCopy in class Exprlocation -
public Statement createUnset(ExprFactory factory,
Location location)
createUnset in class Exprpublic abstract Value eval(Env env)
eval in class Exprenv - the calling environment.
public abstract Var evalVar(Env env)
evalVar in class Exprenv - the calling environment.
public Value evalRef(Env env)
evalRef in class Exprenv - the calling environment.
public Value evalArg(Env env,
boolean isTop)
evalArg in class Exprenv - the calling environment.
public Value evalCopy(Env env)
evalCopy in class Exprenv - the calling environment.
public Value evalArray(Env env)
evalArray in class Exprenv - the calling environment.
public Value evalObject(Env env)
evalObject in class Exprenv - the calling environment.
public abstract void evalUnset(Env env)
env - the calling environment.
public Value evalAssignValue(Env env,
Value value)
evalAssignValue in class Exprenv - the calling environment.
public abstract Value evalAssignRef(Env env,
Value value)
evalAssignRef in class Exprenv - the calling environment.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||