Class RegExLexer

java.lang.Object
org.basex.query.util.regex.parse.RegExLexer
All Implemented Interfaces:
RegExParserConstants, TokenManager

public class RegExLexer extends Object implements TokenManager, RegExParserConstants
A simple lexer for XML Schema regular expressions.
Author:
BaseX Team 2005-21, BSD License, Leo Woerteler
  • Constructor Details

    • RegExLexer

      public RegExLexer(byte[] input, boolean strip)
      Constructor.
      Parameters:
      input - input string
      strip - strip whitespace
  • Method Details

    • getNextToken

      public Token getNextToken()
      Description copied from interface: TokenManager
      This gets the next token from the input stream. A token of kind 0 (<EOF>) should be returned on EOF.
      Specified by:
      getNextToken in interface TokenManager
      Returns:
      the next token