Stay organized with collections
Save and categorize content based on your preferences.
publicabstractclassQueryTreeContext<T>
The base class for specific query tree context used by the walker.
This class is used to maintain additional information gathered while
walking the tree. On this level it is used to collect return type
information.
[[["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\u003eQueryTreeContext<T>\u003c/code\u003e is a base class for managing information during query tree traversal, primarily focused on collecting return type data.\u003c/p\u003e\n"],["\u003cp\u003eIt inherits from \u003ccode\u003ejava.lang.Object\u003c/code\u003e and includes methods like \u003ccode\u003eaddChild()\u003c/code\u003e, \u003ccode\u003egetChild()\u003c/code\u003e, and \u003ccode\u003echildren()\u003c/code\u003e for managing child contexts within the tree.\u003c/p\u003e\n"],["\u003cp\u003eMethods like \u003ccode\u003eaddReturnType()\u003c/code\u003e, \u003ccode\u003egetReturnTypes()\u003c/code\u003e, \u003ccode\u003esetReturnType()\u003c/code\u003e, and \u003ccode\u003esetReturnTypes()\u003c/code\u003e are used to work with return type information collected during the tree traversal.\u003c/p\u003e\n"],["\u003cp\u003eThe class also provides methods to inspect context properties such as \u003ccode\u003eisField()\u003c/code\u003e, \u003ccode\u003eisFunction()\u003c/code\u003e, \u003ccode\u003eisFuzzy()\u003c/code\u003e, \u003ccode\u003eisLiteral()\u003c/code\u003e, \u003ccode\u003eisPhrase()\u003c/code\u003e, \u003ccode\u003eisStrict()\u003c/code\u003e and whether a context is in disjunction, via \u003ccode\u003einDisjunction()\u003c/code\u003e and \u003ccode\u003esetInDisjunction()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt offers capabilities to manage and modify context attributes, including setting text via \u003ccode\u003esetText()\u003c/code\u003e, setting kind via \u003ccode\u003esetKind()\u003c/code\u003e, setting rewrite modes via \u003ccode\u003esetRewriteMode()\u003c/code\u003e, and the ability to determine compatibility with specified return types via \u003ccode\u003eisCompatibleWith()\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]