This package contains a set of useful filters when querying the model.
ClassDescriptionDefines an abstract filter based on matching on the element types.This class defines an abstract reference filter that needs to be subclassed in order to define the matching criteria.Returns all methods/lambdas with same signature in related inheritance hierarchies.This filter matches all the elements annotated with a given annotation type.This Query expects a
CtCatchVariableas input and returns all CtElements, which are in visibility scope of that catch variable.This class defines a composite filter, which can compose several filters together by using
FilteringOperator.Returns all children of an element.This simple filter matches all the references to a given element by using reference equality.This simple filter matches all the accesses to a given field.This Query expects a
CtFieldas input and returns all CtElements, which are in visibility scope of that field.This simple filter matches all the accesses to a given executable or any executable that overrides it.This filter matches all the
CtLambdaelements, which implements defined interface(s)This filter matches all elements that can be considered as line of code (e.g.This Query expects a
CtLocalVariableas input and returns all CtElements, which are in visibility scope of that local variable.Filters elements by name and by type (for instance to find a method).Gets all overridden method from the method given.Gets all overridden method from the method given.Gets all overriding method from the method given.This Query expects a
CtParameteras input and returns all CtElements, which are in visibility scope of that parameter.This Function expects a
CtElementas input and returns all parents of this element.This simple filter matches all the references of a given type.Filters elements with a regular expression on the element's code.This simple filter matches all the occurrences of a return or a throw statement (end of execution flow).Finds the element given in parameter, useful for checking if an element is in an ancestor.visits siblings of input element.Expects a
CtTypeInformationas input and produces all sub classes and sub interfaces recursively.
The output is produced in arbitrary order.Matches all CtType elements, which are sub type of
SubtypeFilter.superTypeMatches the input `superType` too.Expects a
CtTypeInformationas input and produces all super classes and super interfaces recursively.
The output is produced in following order: input type.Implementation of
CtScannerListener, which is used to assure that each interface is visited only once.This simple filter matches all the elements of a given type.This simple filter matches all the accesses to a given field.The mapping function, accepting
CtVariableCtLocalVariable - local variable declared in body CtParameter - method parameter CtCatchVariable - try - catch variable and returning all the CtElements, which exists in visibility scope of this variable.