public final class Tokens extends Object
| Modifier | Constructor and Description |
|---|---|
private |
Tokens()
Hidden for pure static factory.
|
| Modifier and Type | Method and Description |
|---|---|
static Token |
newBooleanToken(Position position,
String raw,
Boolean value)
Creates a new
boolean token. |
static Token |
newFloatToken(Position position,
String raw,
Float value)
Creates a new
float token. |
static Token |
newIntegerToken(Position position,
String raw,
Integer value)
Creates a new
integer token. |
static Token |
newKeywordToken(Position position,
String raw,
String value)
Creates a new
keyword token. |
static Token |
newLiteralToken(Position position,
String raw,
String value)
Creates a new
literal token. |
static Token |
newStringToken(Position position,
String raw,
String value)
Creates a new
string token. |
public static Token newBooleanToken(Position position, String raw, Boolean value)
boolean token.position - start position of token, must not be nullraw - raw value of the token, must not be nullvalue - typed value of the token, must not be nullnullpublic static Token newIntegerToken(Position position, String raw, Integer value)
integer token.position - start position of token, must not be nullraw - raw value of the token, must not be nullvalue - typed value of the token, must not be nullnullpublic static Token newFloatToken(Position position, String raw, Float value)
float token.position - start position of token, must not be nullraw - raw value of the token, must not be nullvalue - typed value of the token, must not be nullnullpublic static Token newStringToken(Position position, String raw, String value)
string token.position - start position of token, must not be nullraw - raw value of the token, must not be nullvalue - typed value of the token, must not be nullnullpublic static Token newKeywordToken(Position position, String raw, String value)
keyword token.position - start position of token, must not be nullraw - raw value of the token, must not be nullvalue - typed value of the token, must not be nullnullpublic static Token newLiteralToken(Position position, String raw, String value)
literal token.position - start position of token, must not be nullraw - raw value of the token, must not be nullvalue - typed value of the token, must not be nullnullCopyright © 2014 Sven Strittmatter. All Rights Reserved.