|
||||||||||
| 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.LiteralExpr
public class LiteralExpr
Represents a literal expression.
| Field Summary |
|---|
| Fields inherited from class com.caucho.quercus.expr.Expr |
|---|
COMPILE_ARG_MAX |
| Constructor Summary | |
|---|---|
LiteralExpr(Value value)
|
|
| Method Summary | |
|---|---|
Value |
eval(Env env)
Evaluates the expression. |
Value |
evalConstant()
Evaluates the expression as a constant. |
protected Value |
getValue()
|
boolean |
isBoolean()
Returns true if the expression evaluates to a boolean. |
boolean |
isDouble()
Returns true for a double value. |
boolean |
isFalse()
Returns true if a static true value. |
boolean |
isLiteral()
Returns true for a literal expression. |
boolean |
isLong()
Returns true for a long value. |
boolean |
isTrue()
Returns true if a static true value. |
java.lang.String |
toString()
|
| Methods inherited from class com.caucho.quercus.expr.Expr |
|---|
assign, canRead, createAssign, createAssignFrom, createAssignRef, createCall, createClassConst, createClassField, createClassField, createCopy, createDeref, createFieldGet, createFieldGet, createIsset, createRef, createUnset, evalArg, evalArgs, evalArray, evalArrayAssign, evalAssignRef, evalAssignValue, evalBoolean, evalChar, evalConstantPrefix, evalConstantSuffix, evalCopy, evalDirty, evalDouble, evalIsset, evalLong, evalObject, evalPostIncrement, evalPreIncrement, evalRef, evalString, evalStringValue, evalTop, evalUnsetArray, evalValue, evalVar, getFileName, getFunctionLocation, getLine, getLocation, getLocationLine, isArray, isAssign, isConstant, isNumber, isRef, isString, isVar, print |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LiteralExpr(Value value)
| Method Detail |
|---|
protected Value getValue()
public boolean isLiteral()
isLiteral in class Exprpublic boolean isTrue()
isTrue in class Exprpublic boolean isFalse()
isFalse in class Exprpublic boolean isLong()
isLong in class Exprpublic boolean isDouble()
isDouble in class Exprpublic boolean isBoolean()
Expr
isBoolean in class Exprpublic Value evalConstant()
evalConstant in class Exprpublic Value eval(Env env)
eval in class Exprenv - the calling environment.
public java.lang.String toString()
toString in class Expr
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||