- Enclosing class:
- TokenProducer
public static interface TokenProducer.CharacterCheck
Check whether a character codepoint would be a valid addition to a word.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isAllowedCharacter
(int codePoint, TokenProducer.SequenceParser parser) Is the given character codepoint a valid addition to the word being formed by theSequenceParser
.
-
Method Details
-
isAllowedCharacter
Is the given character codepoint a valid addition to the word being formed by theSequenceParser
.- Parameters:
codePoint
- the character codepoint to test.parser
- the object representing the current state of the parser.- Returns:
true
if it can be safely added to the word being currently formed, false otherwise.
-