Stay organized with collections
Save and categorize content based on your preferences.
publicclassQueryTreeBuilder
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003e\u003ccode\u003eQueryTreeBuilder\u003c/code\u003e generates an Abstract Syntax Tree (AST) representation of a user-specified query.\u003c/p\u003e\n"],["\u003cp\u003eIt utilizes a provided \u003ccode\u003eQueryParserFactory\u003c/code\u003e to parse the query, and returns the AST's root.\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits members from \u003ccode\u003ejava.lang.Object\u003c/code\u003e, including methods like \u003ccode\u003eclone\u003c/code\u003e, \u003ccode\u003eequals\u003c/code\u003e, and \u003ccode\u003etoString\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eQueryTreeBuilder\u003c/code\u003e has two constructors: a default one, and another that takes a \u003ccode\u003eQueryParserFactory\u003c/code\u003e as a parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eparse\u003c/code\u003e method takes a String \u003ccode\u003equery\u003c/code\u003e and returns a \u003ccode\u003eCommonTree\u003c/code\u003e representing the parsed query, potentially throwing a \u003ccode\u003eRecognitionException\u003c/code\u003e for invalid queries.\u003c/p\u003e\n"]]],[],null,["# Class QueryTreeBuilder (2.0.0)\n\n public class QueryTreeBuilder\n\nA generator of AST representation of a query. This class uses the given factory\nto produce a query parser which parses user specified query. If successful it\nreturns the root of an AST representing the parsed query. \n\nInheritance\n-----------\n\n[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \\\u003e QueryTreeBuilder \n\nInherited Members\n-----------------\n\n[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) \n[Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) \n[Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) \n[Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) \n[Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) \n[Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) \n[Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) \n[Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) \n[Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)\n\nConstructors\n------------\n\n### QueryTreeBuilder()\n\n public QueryTreeBuilder()\n\n### QueryTreeBuilder(QueryParserFactory parserFactory)\n\n public QueryTreeBuilder(QueryParserFactory parserFactory)\n\nMethods\n-------\n\n### parse(String query)\n\n public CommonTree parse(String query)\n\nParses the user query and returns its AST."]]