Class AnnotationTargetMatcher<T extends AnnotationDescription>

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

@Enhance public class AnnotationTargetMatcher<T extends AnnotationDescription> extends ElementMatcher.Junction.ForNonNullValues<T>
A matcher for annotations that target a given element type.
  • Field Details

    • elementType

      private final ElementType elementType
      The targeted element type.
  • Constructor Details

    • AnnotationTargetMatcher

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