public final class Scanner
extends java.lang.Object
ExpressionEvaluator.| Modifier and Type | Class and Description |
|---|---|
static class |
Scanner.TokenType
Token types for the
ExpressionEvaluator scanner. |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Character |
decodeCharacterLiteral(java.lang.String text) |
static java.lang.Object |
decodeFloatingPointLiteral(java.lang.String text) |
static java.lang.Object |
decodeIntegerLiteral(java.lang.String text) |
static java.lang.String |
decodeStringLiteral(java.lang.String text)
Removes the double quotes and the escape sequences from the given string literal.
|
static StringScanner<Scanner.TokenType> |
stringScanner() |
public static StringScanner<Scanner.TokenType> stringScanner()
StringScanner for the given Scanner.TokenTypepublic static java.lang.Character decodeCharacterLiteral(java.lang.String text)
throws ScanException
text is single quote, backslash, single quote, single quoteScanExceptionpublic static java.lang.Object decodeFloatingPointLiteral(java.lang.String text)
Double or a Floatpublic static java.lang.Object decodeIntegerLiteral(java.lang.String text)
throws ScanException
Long or an IntegerScanExceptionpublic static java.lang.String decodeStringLiteral(java.lang.String text)
throws ScanException
ScanException