public class ConstExpr extends Expr
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
_var |
COMPILE_ARG_MAX, NULL_ARGS
Constructor and Description |
---|
ConstExpr(Location location,
java.lang.String var) |
ConstExpr(java.lang.String var) |
Modifier and Type | Method and Description |
---|---|
Expr |
createClassConst(QuercusParser parser,
Expr name)
Creates a class field Foo::$bar
|
Expr |
createClassConst(QuercusParser parser,
StringValue name)
Creates a class field Foo::bar
|
Expr |
createClassField(QuercusParser parser,
Expr name)
Creates a class field Foo::${bar}
|
Expr |
createClassField(QuercusParser parser,
StringValue name)
Creates a class field Foo::$bar
|
Value |
eval(Env env)
Evaluates the expression.
|
Value |
evalConstant()
Returns true for literal
|
QuercusClass |
evalQuercusClass(Env env)
Evaluates as a QuercusClass.
|
java.lang.String |
getVar()
Returns the variable.
|
java.lang.String |
toString() |
assign, canRead, createAssign, createAssignFrom, createAssignRef, createCall, createCopy, createDeref, createFieldGet, createFieldGet, createIsset, createRef, createUnset, equals, evalArg, evalArgs, evalArray, evalArrayAssign, evalArrayAssignRef, evalArrayAssignRef, evalArrayAssignTail, evalAssignRef, evalAssignRef, evalAssignValue, evalAssignValue, evalBoolean, evalChar, evalConstantPrefix, evalConstantSuffix, evalCopy, evalDirty, evalDouble, evalEmpty, evalIsset, evalIssetValue, evalLong, evalObject, evalPostIncrement, evalPreIncrement, evalRef, evalString, evalStringValue, evalTop, evalUnsetArray, evalValue, evalVar, getFileName, getFunctionLocation, getLine, getLocation, getLocationLine, isArray, isAssign, isBoolean, isConstant, isDouble, isFalse, isLiteral, isLong, isNumber, isRef, isString, isTrue, isVar, print
public ConstExpr(Location location, java.lang.String var)
public ConstExpr(java.lang.String var)
public java.lang.String getVar()
public Expr createClassConst(QuercusParser parser, StringValue name)
createClassConst
in class Expr
public Expr createClassConst(QuercusParser parser, Expr name)
createClassConst
in class Expr
public Expr createClassField(QuercusParser parser, StringValue name)
createClassField
in class Expr
public Expr createClassField(QuercusParser parser, Expr name)
createClassField
in class Expr
public Value evalConstant()
evalConstant
in class Expr
public QuercusClass evalQuercusClass(Env env)
Expr
evalQuercusClass
in class Expr