Interface TokenProducer3.CharacterCheck

Enclosing class:
TokenProducer3<E extends Exception>

public static interface TokenProducer3.CharacterCheck
Check whether a character codepoint would be a valid addition to a word.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isAllowedCharacter(int codePoint, TokenProducer3.SequenceParser<? extends Exception> parser)
    Is the given character codepoint a valid addition to the word being formed by the SequenceParser.
  • Method Details

    • isAllowedCharacter

      boolean isAllowedCharacter(int codePoint, TokenProducer3.SequenceParser<? extends Exception> 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.