QueryTreeBuilder (Google App Engine API for Java)


Class QueryTreeBuilder

  • java.lang.Object
    • com.google.appengine.api.search.query.QueryTreeBuilder

  • public class QueryTreeBuilder
    extends java.lang.Object
    A generator of AST representation of a query. This class uses the given factory to produce a query parser which parses user specified query. If successful it returns the root of an AST representing the parsed query.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      CommonTree parse(java.lang.String query)
      Parses the user query and returns its AST.
      • Methods inherited from class java.lang.Object

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

      • QueryTreeBuilder

        public QueryTreeBuilder()
    • Method Detail

      • parse

        public CommonTree parse(java.lang.String query)
                         throws RecognitionException
        Parses the user query and returns its AST.
        query - the user query to be parsed
        a CommonTree constructed from the query
        RecognitionException - if the user query is invalid
        java.lang.NullPointerException - if query is null