public static class TokenParser.HandlerData<T extends Token>
extends java.lang.Object
Constructor and Description |
---|
HandlerData(TokenHandler<T> tokenHandler,
java.lang.Class<T> tokenType,
short position)
Create new instance of HandlerData.
|
Modifier and Type | Method and Description |
---|---|
TokenHandler<T> |
getTokenHandler()
Get the token handler.
|
java.lang.Class<T> |
getTokenType()
Get the type of token the handler is capable of parsing.
|
public HandlerData(TokenHandler<T> tokenHandler, java.lang.Class<T> tokenType, short position)
tokenHandler
- the tokenHandler for the tokenType.tokenType
- the tokenType to convert.position
- the identifier of the token type used in the byte stream.public TokenHandler<T> getTokenHandler()
public java.lang.Class<T> getTokenType()