Class DeclaringTypeMatcher<T extends DeclaredByType>

Type Parameters:
T - The exact type of the element being matched.
All Implemented Interfaces:
ElementMatcher<T>, ElementMatcher.Junction<T>

@Enhance public class DeclaringTypeMatcher<T extends DeclaredByType> extends ElementMatcher.Junction.ForNonNullValues<T>
An element matcher that matches the declaring type of another element, only if this element is actually declared in a type.
  • Field Details

  • Constructor Details

    • DeclaringTypeMatcher

      public DeclaringTypeMatcher(ElementMatcher<? super TypeDescription.Generic> matcher)
      Creates a new matcher for the declaring type of an element.
      Parameters:
      matcher - The type matcher to be applied if the target element is declared in a type.
  • Method Details