com.caucho.es.parser
Class LiteralExpr
java.lang.Object
|
+--com.caucho.es.parser.Expr
|
+--com.caucho.es.parser.LiteralExpr
- class LiteralExpr
- extends Expr
Represents a java literal.
| Fields inherited from class com.caucho.es.parser.Expr |
block, cl, filename, function, isTop, javaType, line, noValue, type, TYPE_BOOLEAN, TYPE_ES, TYPE_INTEGER, TYPE_JAVA, TYPE_LONG, TYPE_NUMBER, TYPE_STRING, TYPE_UNKNOWN, TYPE_VOID, withDepth |
| Methods inherited from class com.caucho.es.parser.Expr |
assign, binaryOp, cast, conditional, delete, doVoid, error, exprStatement, fieldReference, fieldReference, getFilename, getJavaClass, getLine, getType, getTypeExpr, isNum, isNumeric, killValue, next, postfix, prefix, printBoolean, printExpr, printInt32, printInt64, printInt64Impl, printJava, printJavaClass, printJavaImpl, printJavaString, printLiteral, printNum, printString, setBoolean, setTop, setUsed, startCall, startNew, typeof, unaryOp |
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
value
private ESBase value
LiteralExpr
LiteralExpr(Block block,
ESBase value)
getLiteral
ESBase getLiteral()
- Return the literal value.
isSimple
boolean isSimple()
- Overrides:
isSimple in class Expr
printInt32Impl
void printInt32Impl()
throws java.io.IOException
- Overrides:
printInt32Impl in class Expr
printNumImpl
void printNumImpl()
throws java.io.IOException
- Overrides:
printNumImpl in class Expr
printBooleanImpl
void printBooleanImpl()
throws java.io.IOException
- Overrides:
printBooleanImpl in class Expr
printStringImpl
void printStringImpl()
throws java.io.IOException
- Prints the literal as a string.
- Overrides:
printStringImpl in class Expr
printStr
void printStr()
throws java.io.IOException
- Description copied from class:
Expr
- Prints a string value
- Overrides:
printStr in class Expr
print
void print()
throws java.io.IOException
- Overrides:
print in class Expr
printImpl
void printImpl()
throws java.io.IOException
- Overrides:
printImpl in class Expr
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object