public interface Token
| 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.
|
String |
asString()
Get the string typed value.
|
Position |
getPosition()
Start position of the token.
|
String |
getRaw()
The raw string recognized by the scanner.
|
TokenType |
getType()
Get the token type class.
|
Position getPosition()
nullString getRaw()
For example a string token "foo" has the raw value "foo" in contrast
it's typed string value will be foo.
nullTokenType getType()
nullBoolean asBoolean()
nullFloat asFloat()
nullInteger asInteger()
nullString asString()
nullCopyright © 2014 Sven Strittmatter. All Rights Reserved.