public final class Scanner extends 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 Character |
decodeCharacterLiteral(String text) |
static Object |
decodeFloatingPointLiteral(String text) |
static Object |
decodeIntegerLiteral(String text) |
static String |
decodeStringLiteral(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 Character decodeCharacterLiteral(String text) throws ScanException
text is single quote, backslash, single quote, single quoteScanExceptionpublic static Object decodeIntegerLiteral(String text) throws ScanException
Long or an IntegerScanExceptionpublic static String decodeStringLiteral(String text) throws ScanException
ScanExceptionCopyright © 2018 Arno Unkrig. All rights reserved.