public class VarExpr extends AbstractVarExpr
Modifier and Type | Field and Description |
---|---|
protected StringValue |
_name |
COMPILE_ARG_MAX, NULL_ARGS
Modifier | Constructor and Description |
---|---|
protected |
VarExpr(Location location,
VarInfo var) |
protected |
VarExpr(VarInfo var) |
Modifier and Type | Method and Description |
---|---|
void |
assign(QuercusParser parser)
Creates the assignment.
|
Expr |
copy(Location location)
Copy for things like $a .= "test";
|
Expr |
createAssign(QuercusParser parser,
Expr value)
Creates the assignment.
|
Expr |
createAssignRef(QuercusParser parser,
Expr value)
Creates the assignment.
|
boolean |
equals(java.lang.Object o) |
Value |
eval(Env env)
Evaluates the expression.
|
Value |
evalArg(Env env,
boolean isTop)
Evaluates the expression.
|
Value |
evalArray(Env env)
Evaluates the expression, converting to an array if unset.
|
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.
|
boolean |
evalIsset(Env env)
Evaluates the expression as an isset() statement.
|
Value |
evalIssetValue(Env env)
Evaluates the expression as an isset() statement.
|
Value |
evalObject(Env env)
Evaluates the expression, converting to an object if is unset, NULL,
or is a string.
|
Value |
evalTop(Env env)
Evaluates the expression.
|
void |
evalUnset(Env env)
Evaluates the expression.
|
Var |
evalVar(Env env)
Evaluates the expression.
|
java.lang.String |
getJavaVar()
Returns the java variable name.
|
StringValue |
getName()
Returns the variable name.
|
VarInfo |
getVarInfo()
Returns the variable info.
|
int |
hashCode() |
java.lang.String |
toString() |
createCopy, createRef, createUnset, evalRef, isVar
canRead, createAssignFrom, createCall, createClassConst, createClassConst, createClassField, createClassField, createDeref, createFieldGet, createFieldGet, createIsset, evalArgs, evalArrayAssign, evalArrayAssignRef, evalArrayAssignRef, evalArrayAssignTail, evalAssignRef, evalAssignValue, evalBoolean, evalChar, evalConstant, evalConstantPrefix, evalConstantSuffix, evalDirty, evalDouble, evalEmpty, evalLong, evalPostIncrement, evalPreIncrement, evalQuercusClass, evalString, evalStringValue, evalUnsetArray, evalValue, getFileName, getFunctionLocation, getLine, getLocation, getLocationLine, isArray, isAssign, isBoolean, isConstant, isDouble, isFalse, isLiteral, isLong, isNumber, isRef, isString, isTrue, print
protected final StringValue _name
protected VarExpr(VarInfo var)
public VarInfo getVarInfo()
public StringValue getName()
public java.lang.String getJavaVar()
public Expr createAssign(QuercusParser parser, Expr value)
createAssign
in class AbstractVarExpr
public void assign(QuercusParser parser)
assign
in class AbstractVarExpr
public Expr createAssignRef(QuercusParser parser, Expr value)
createAssignRef
in class AbstractVarExpr
public Value eval(Env env)
eval
in class AbstractVarExpr
env
- the calling environment.public boolean evalIsset(Env env)
public Value evalIssetValue(Env env)
evalIssetValue
in class Expr
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 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 void evalUnset(Env env)
evalUnset
in class AbstractVarExpr
env
- the calling environment.public int hashCode()
hashCode
in class java.lang.Object