static class BaseToken.StringToken extends BaseToken<String>
BaseToken.BooleanToken, BaseToken.FloatToken, BaseToken.IntegerToken, BaseToken.KeywordToken, BaseToken.LiteralToken, BaseToken.StringToken| Modifier | Constructor and Description |
|---|---|
|
StringToken(Position position,
String raw,
String value)
Dedicated constructor.
|
private |
StringToken(TokenType type,
Position position,
String raw,
String value)
Constructor for sub classes.
|
| Modifier and Type | Method and Description |
|---|---|
Boolean |
asBoolean()
Get the boolean typed value.
|
Float |
asFloat()
Get the float typed value.
|
Integer |
asInteger()
Get the integer typed value.
|
public StringToken(Position position, String raw, String value)
position - must not be nullraw - must not be nullvalue - must not be nullCopyright © 2014 Sven Strittmatter. All Rights Reserved.