Class QueryLexer


  • public class QueryLexer
    extends Object
    Tokenizer for the query DSL.
    • Constructor Detail

      • QueryLexer

        public QueryLexer​(String input)
        Creates a lexer over a query string.
        Parameters:
        input - the query source
    • Method Detail

      • tokenize

        public List<Token> tokenize()
                             throws ParseException
        Scans the input from the start, discarding any tokens from a previous call.
        Returns:
        the tokens, ending with an EOF token
        Throws:
        ParseException - if the input contains an unterminated literal or an unknown character