Class DeclaringAnnotationMatcher<T extends AnnotationSource>

    • Constructor Detail

      • 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 Detail

      • doMatch

        protected boolean doMatch​(T target)
        Matches the supplied value if it was found not to be null.
        Specified by:
        doMatch in class ElementMatcher.Junction.ForNonNullValues<T extends AnnotationSource>
        Parameters:
        target - The instance to be matched.
        Returns:
        true if the given element is matched by this matcher or false otherwise.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object