Uses of Package
spoon.reflect.visitor.filter
Package
Description
This package contains a set of useful filters when querying the model.
-
ClassDescriptionDefines an abstract filter based on matching on the element types.Returns all methods/lambdas with same signature in related inheritance hierarchies.Expects
CtType
as input and produces allCtTypeMember
s declared in input class or any super class or super interface.Returns all children of an element.This filter matches all theCtExecutableReference
referencing defined one or moreCtExecutable
s.This enumeration defines the possible composition operators for filters.This filter matches all theCtLambda
elements, which implements defined interface(s)This mapping function expects aCtLocalVariable
as input and returns allCtLocalVariableReference
s, which refers this input.Gets all overridden method from the method given.Gets all overriding method from the method given.This Function expects aCtElement
as input and returns all parents of this element.visits siblings of input element.Defines visiting modeExpects aCtTypeInformation
as 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 ofSubtypeFilter.superType
Matches the input `superType` too.Expects aCtTypeInformation
as input and produces all super classes and super interfaces recursively.
The output is produced in following order: input type.This simple filter matches all the elements of a given type.This simple filter matches all the accesses to a given variable.