Interface IWhitespaceState

All Superinterfaces:
ITokenizerState
All Known Implementing Classes:
GenericWhitespaceState

public interface IWhitespaceState extends ITokenizerState
Defines an interface for tokenizer state that processes whitespaces (' ', '\t')
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Clears definitions of whitespace characters.
    void
    setWhitespaceChars(int fromSymbol, int toSymbol, boolean enable)
    Establish the given characters as whitespace to ignore.

    Methods inherited from interface org.pipservices3.expressions.tokenizers.ITokenizerState

    nextToken
  • Method Details

    • setWhitespaceChars

      void setWhitespaceChars(int fromSymbol, int toSymbol, boolean enable) throws Exception
      Establish the given characters as whitespace to ignore.
      Parameters:
      fromSymbol - First character index of the interval.
      toSymbol - Last character index of the interval.
      enable - true if this state should ignore characters in the given range.
      Throws:
      Exception
    • clearWhitespaceChars

      void clearWhitespaceChars()
      Clears definitions of whitespace characters.