public class LiteralStringExpr extends Expr
Modifier and Type | Field and Description |
---|---|
protected StringValue |
_value |
COMPILE_ARG_MAX, NULL_ARGS
Constructor and Description |
---|
LiteralStringExpr(StringValue value) |
Modifier and Type | Method and Description |
---|---|
Expr |
createClassConst(QuercusParser parser,
Expr name)
Creates a class field $class::foo
|
Expr |
createClassConst(QuercusParser parser,
StringValue name)
Creates a class field $class::foo
|
Value |
eval(Env env)
Evaluates the expression.
|
Value |
evalConstant()
Evaluates the expression as a constant.
|
StringValue |
evalStringValue(Env env)
Evaluates the expression as a string value.
|
boolean |
isLiteral()
Returns true for a literal expression.
|
boolean |
isString()
Returns true if the expression evaluates to a string.
|
java.lang.String |
toString() |
assign, canRead, createAssign, createAssignFrom, createAssignRef, createCall, createClassField, createClassField, 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, evalQuercusClass, evalRef, evalString, evalTop, evalUnsetArray, evalValue, evalVar, getFileName, getFunctionLocation, getLine, getLocation, getLocationLine, isArray, isAssign, isBoolean, isConstant, isDouble, isFalse, isLong, isNumber, isRef, isTrue, isVar, print
protected final StringValue _value
public LiteralStringExpr(StringValue value)
public boolean isLiteral()
public boolean isString()
public Expr createClassConst(QuercusParser parser, StringValue name)
createClassConst
in class Expr
public Expr createClassConst(QuercusParser parser, Expr name)
createClassConst
in class Expr
public Value evalConstant()
evalConstant
in class Expr
public StringValue evalStringValue(Env env)
evalStringValue
in class Expr
env
- the calling environment.