Interface Filter<T extends CtElement>

Type Parameters:
T - the type of the filtered elements (an element belonging to the filtered element must be assignable from T).
All Known Implementing Classes:
AbstractFilter, AbstractReferenceFilter, AnnotationFilter, CompositeFilter, DirectReferenceFilter, ExecutableReferenceFilter, FieldAccessFilter, InvocationFilter, LambdaFilter, LineFilter, NamedElementFilter, NameFilter, OverriddenMethodFilter, OverridingMethodFilter, ReferenceTypeFilter, RegexFilter, ReturnOrThrowFilter, SameFilter, SubtypeFilter, TemplateMatcher, TypeFilter, VariableAccessFilter

public interface Filter<T extends CtElement>
This interface defines a filter for program elements.
  • Method Summary

    Modifier and Type
    matches​(T element)
    Tells if the given element matches.
  • Method Details

    • matches

      boolean matches(T element)
      Tells if the given element matches.
      element - - the element to be checked for a match. Parameter element is never null if Query is used.