Stay organized with collections
Save and categorize content based on your preferences.
publicclassExpressionTreeBuilder
A generator of AST representation of an expression. This class can use an
optionally supplied CommonTreeAdaptor to process the tree further.
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\u003eExpressionTreeBuilder\u003c/code\u003e generates an Abstract Syntax Tree (AST) representation of an expression.\u003c/p\u003e\n"],["\u003cp\u003eIt can utilize a \u003ccode\u003eCommonTreeAdaptor\u003c/code\u003e to further process the tree.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eparse\u003c/code\u003e method parses a string expression and returns a \u003ccode\u003eCommonTree\u003c/code\u003e, representing the parsed query.\u003c/p\u003e\n"],["\u003cp\u003eThe constructor \u003ccode\u003eExpressionTreeBuilder\u003c/code\u003e optionally accepts a \u003ccode\u003eCommonTreeAdaptor\u003c/code\u003e for customized tree processing.\u003c/p\u003e\n"],["\u003cp\u003eParsing an expression can throw a \u003ccode\u003eRecognitionException\u003c/code\u003e if the provided expression is invalid.\u003c/p\u003e\n"]]],[],null,[]]