Package org.basex.query.util.regex.parse
Class RegExLexer
java.lang.Object
org.basex.query.util.regex.parse.RegExLexer
- All Implemented Interfaces:
RegExParserConstants,TokenManager
A simple lexer for XML Schema regular expressions.
- Author:
- BaseX Team 2005-21, BSD License, Leo Woerteler
-
Field Summary
Fields inherited from interface org.basex.query.util.regex.parse.RegExParserConstants
BACK_REF, BR_CLOSE, BR_OPEN, CAT_ESC, CHAR, COMMA, DIGIT, EOF, LINE_END, LINE_START, MULTI_ESC, NEG, NPAR_OPEN, NUMBER, OR, PAR_CLOSE, PAR_OPEN, PLUS, Q_MARK, QUANT_CLOSE, QUANT_OPEN, SINGLE_ESC, STAR, TO, tokenImage, WILDCARD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis gets the next token from the input stream.
-
Constructor Details
-
RegExLexer
public RegExLexer(byte[] input, boolean strip) Constructor.- Parameters:
input- input stringstrip- strip whitespace
-
-
Method Details
-
getNextToken
Description copied from interface:TokenManagerThis gets the next token from the input stream. A token of kind 0 (<EOF>) should be returned on EOF.- Specified by:
getNextTokenin interfaceTokenManager- Returns:
- the next token
-