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.TokenType
public static Character decodeCharacterLiteral(String text) throws ScanException
text
is single quote, backslash, single quote, single quoteScanException
public static Object decodeIntegerLiteral(String text) throws ScanException
Long
or an Integer
ScanException
public static String decodeStringLiteral(String text) throws ScanException
ScanException
Copyright © 2018 Arno Unkrig. All rights reserved.