Interface TokenProducer.CharacterCheck

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 Type
    Method
    Description
    boolean
    Is the given character codepoint a valid addition to the word being formed by the SequenceParser.
  • Method Details

    • isAllowedCharacter

      boolean isAllowedCharacter(int codePoint, TokenProducer.SequenceParser parser)
      Is the given character codepoint a valid addition to the word being formed by the SequenceParser.
      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.