Package spoon.reflect.visitor.chain
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 TypeMethodDescriptionvoidThis method is called when the filter/function is added as a step to aCtQueryby the query engine (CtQueryImpl).
-
Method Details
-
setQuery
This method is called when the filter/function is added as a step to aCtQueryby the query engine (CtQueryImpl).- Parameters:
query- an instance registering this function/filter.
-