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-08-07 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,[]]