- Type Parameters:
T
- the token value type
- All Known Implementing Classes:
CharSequenceTokenizer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Interface for all tokenizers.
- Since:
- 7.1
- Version:
- 7.1
-
Method Summary
-
Method Details
-
next
Return the next available token, ornull
if no further tokens are available.- Returns:
- the next available token
-
tokens
Return a stream of tokens, generated bythis
tokenizer. The returned stream terminates, when thenull
-token is encountered.- Returns:
- a new tokens stream of
this
tokenizer
-