public final class AnnotationHelper extends Object
Constructor and Description |
---|
AnnotationHelper(MethodHandles.Lookup lookup) |
Modifier and Type | Method and Description |
---|---|
Stream<? extends Annotation> |
expandRepeatableContainingAnnotation(Annotation containingAnnotationCandidate) |
<A extends Annotation> |
getAnnotationByType(AnnotatedElement annotatedElement,
Class<A> annotationType) |
Stream<? extends Annotation> |
getAnnotationsByMetaAnnotationType(AnnotatedElement annotatedElement,
Class<? extends Annotation> metaAnnotationType) |
<A extends Annotation> |
getAnnotationsByType(AnnotatedElement annotatedElement,
Class<A> annotationType) |
boolean |
isMetaAnnotated(Annotation annotation,
Class<? extends Annotation> metaAnnotationType) |
public AnnotationHelper(MethodHandles.Lookup lookup)
public <A extends Annotation> Optional<A> getAnnotationByType(AnnotatedElement annotatedElement, Class<A> annotationType)
public <A extends Annotation> Stream<A> getAnnotationsByType(AnnotatedElement annotatedElement, Class<A> annotationType)
public Stream<? extends Annotation> getAnnotationsByMetaAnnotationType(AnnotatedElement annotatedElement, Class<? extends Annotation> metaAnnotationType)
public boolean isMetaAnnotated(Annotation annotation, Class<? extends Annotation> metaAnnotationType)
public Stream<? extends Annotation> expandRepeatableContainingAnnotation(Annotation containingAnnotationCandidate)
Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.