Interface Parser

All Known Subinterfaces:
CustomParser
All Known Implementing Classes:
AbstractParser, AdvancedParser, AllParser, AnyParser, PhraseParser, ProgrammaticParser, SelectParser, TokenizeParser, WebParser, YqlParser

public interface Parser
Defines the interface of a query parser. To construct an instance of this class, use the ParserFactory.
Author:
Simon Thoresen Hult
  • Method Summary

    Modifier and Type
    Method
    Description
    parse(Parsable query)
    Parser the given Parsable, and returns a corresponding QueryTree.
  • Method Details

    • parse

      QueryTree parse(Parsable query)
      Parser the given Parsable, and returns a corresponding QueryTree. If parsing fails without an exception, the contained root will be an instance of NullItem.
      Parameters:
      query - the Parsable to parse
      Returns:
      the parsed QueryTree, never null