Class ProgrammaticParser

  • All Implemented Interfaces:
    CustomParser, Parser

    public final class ProgrammaticParser
    extends java.lang.Object
    implements CustomParser
    Since:
    5.1.4
    Author:
    Simon Thoresen Hult
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      QueryTree parse​(Parsable query)
      Parser the given Parsable, and returns a corresponding QueryTree.
      Item parse​(java.lang.String queryToParse, java.lang.String filterToParse, com.yahoo.language.Language parsingLanguage, IndexFacts.Session indexFacts, java.lang.String defaultIndexName)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ProgrammaticParser

        public ProgrammaticParser()
    • Method Detail

      • parse

        public QueryTree parse​(Parsable query)
        Description copied from interface: Parser
        Parser the given Parsable, and returns a corresponding QueryTree. If parsing fails without an exception, the contained root will be an instance of NullItem.
        Specified by:
        parse in interface Parser
        Parameters:
        query - the Parsable to parse
        Returns:
        the parsed QueryTree, never null
      • parse

        public Item parse​(java.lang.String queryToParse,
                          java.lang.String filterToParse,
                          com.yahoo.language.Language parsingLanguage,
                          IndexFacts.Session indexFacts,
                          java.lang.String defaultIndexName)
        Specified by:
        parse in interface CustomParser