Class DeclaringAnnotationMatcher<T extends AnnotationSource>

java.lang.Object
net.bytebuddy.matcher.ElementMatcher.Junction.AbstractBase<T>
net.bytebuddy.matcher.DeclaringAnnotationMatcher<T>
Type Parameters:
T - The actual matched type of this matcher.
All Implemented Interfaces:
ElementMatcher<T>, ElementMatcher.Junction<T>

@Enhance public class DeclaringAnnotationMatcher<T extends AnnotationSource> extends ElementMatcher.Junction.AbstractBase<T>
An element matcher that matches the list of annotations that are provided by an annotated element.
  • Field Details

  • Constructor Details

    • DeclaringAnnotationMatcher

      public DeclaringAnnotationMatcher(ElementMatcher<? super AnnotationList> matcher)
      Creates a new matcher for the annotations of an annotated element.
      Parameters:
      matcher - The matcher to be applied to the provided annotation list.
  • Method Details

    • matches

      public boolean matches(T target)
      Matches a target against this element matcher.
      Parameters:
      target - The instance to be matched.
      Returns:
      true if the given element is matched by this matcher or false otherwise.
    • toString

      public String toString()
      Overrides:
      toString in class Object