D - the type of source document identifiersT - the type of token types; typically an enum typepublic static interface Parser.Token<D,T>
| Modifier and Type | Method and Description |
|---|---|
default @Opt Location<D> |
getLocation()
Returns the source location of this token.
|
String |
getText()
Returns the text content of this token.
|
T |
getType()
Returns the type of this token.
|
@Opt default @Opt Location<D> getLocation()
The default implementation returns null.
null if
not available.T getType()
String getText()
see also the complete user documentation .