Class AnnotationTargetMatcher<T extends AnnotationDescription>

    • Field Detail

      • elementType

        private final java.lang.annotation.ElementType elementType
        The targeted element type.
    • Constructor Detail

      • AnnotationTargetMatcher

        public AnnotationTargetMatcher​(java.lang.annotation.ElementType elementType)
        Creates a new matcher for an annotation target.
        Parameters:
        elementType - The targeted element type.
    • Method Detail

      • 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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object