Interface CtQueryAware

All Known Implementing Classes:
AllMethodsSameSignatureFunction, AllTypeMembersFunction, CtScannerFunction, ParentFunction, PotentialVariableDeclarationFunction, SubInheritanceHierarchyFunction, SuperInheritanceHierarchyFunction

public interface CtQueryAware
Expert-only capability interface so as to write advanced CtFunction and Filter that need to access the state of the top-level CtQuery instance containing the function to be evaluated. Not meant to be implemented directly, only in conjunction with CtConsumableFunction, CtFunction or Filter.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setQuery​(CtQuery query)
    This method is called when the filter/function is added as a step to a CtQuery by the query engine (CtQueryImpl).
  • Method Details

    • setQuery

      void setQuery(CtQuery query)
      This method is called when the filter/function is added as a step to a CtQuery by the query engine (CtQueryImpl).
      Parameters:
      query - an instance registering this function/filter.