Class QueryParser


  • public class QueryParser
    extends Object
    Parses the outer query shell - (FIND|SHOW) target [IN|DURING scope] [WHERE expr] [WITH runspec] [LIMIT n] [ORDER BY key] - and delegates the WHERE expression to ConditionParser, the composable matcher grammar.
    • Constructor Detail

      • QueryParser

        public QueryParser()
    • Method Detail

      • parse

        public Query parse​(String input)
                    throws ParseException
        Lexes and parses a whole query, requiring the input to be fully consumed.
        Parameters:
        input - the query text
        Returns:
        the parsed FIND or SHOW query
        Throws:
        ParseException - if the text is malformed or tokens remain at the end