Class InheritedAnnotationMatcher<T extends TypeDescription>

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

@Enhance public class InheritedAnnotationMatcher<T extends TypeDescription> extends ElementMatcher.Junction.AbstractBase<T>
An element matcher that matches the list of inherited annotations of a type description.
  • Field Details

  • Constructor Details

    • InheritedAnnotationMatcher

      public InheritedAnnotationMatcher(ElementMatcher<? super AnnotationList> matcher)
      Creates a new matcher for the inherited annotations of a type description.
      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