Package org.nuxeo.runtime.test.runner
Class AnnotationScanner
java.lang.Object
org.nuxeo.runtime.test.runner.AnnotationScanner
- Author:
- Bogdan Stefanescu
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected List<Annotation>
collectAnnotations
(Class<?> clazz) TODO when collecting annotations annotated withInherited
they will be collected twice.protected <T extends Annotation>
List<Annotation>collectAnnotations
(Class<?> clazz, Class<T> annotationClass) protected <T extends Annotation>
voidcollectAnnotations
(Class<?> clazz, Class<T> annotationClass, Set<Annotation> annotations) <T extends Annotation>
TgetAnnotation
(Class<?> clazz, Class<T> annotationType) List<? extends Annotation>
getAnnotations
(Class<?> clazz) Deprecated.<T extends Annotation>
List<T>getAnnotations
(Class<?> clazz, Class<T> annotationClass) <T extends Annotation>
TgetFirstAnnotation
(Class<?> clazz, Class<T> annotationType) void
Deprecated.since 2021.15, doesn't take into account @Repeatable annotations, prefer to usegetAnnotations(Class, Class)
instead.
-
Field Details
-
visitedClasses
-
classes
-
classesAnnotations
-
-
Constructor Details
-
AnnotationScanner
public AnnotationScanner()
-
-
Method Details
-
scan
Deprecated.since 2021.15, doesn't take into account @Repeatable annotations, prefer to usegetAnnotations(Class, Class)
instead. -
getAnnotations
Deprecated.since 2021.15, doesn't take into account @Repeatable annotations, prefer to usegetAnnotations(Class, Class)
instead. -
getAnnotation
-
getFirstAnnotation
-
getAnnotations
-
collectAnnotations
protected <T extends Annotation> List<Annotation> collectAnnotations(Class<?> clazz, Class<T> annotationClass) -
collectAnnotations
protected <T extends Annotation> void collectAnnotations(Class<?> clazz, Class<T> annotationClass, Set<Annotation> annotations) -
collectAnnotations
TODO when collecting annotations annotated withInherited
they will be collected twice.
-
getAnnotations(Class, Class)
instead.