Package org.nuxeo.runtime.test.runner
Class AnnotationScanner
- java.lang.Object
-
- org.nuxeo.runtime.test.runner.AnnotationScanner
-
public class AnnotationScanner extends Object
- Author:
- Bogdan Stefanescu
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<Class<?>,List<Annotation>>
classes
protected Map<Class<?>,Map<Class<?>,List<Annotation>>>
classesAnnotations
protected Set<Class<?>>
visitedClasses
-
Constructor Summary
Constructors Constructor Description AnnotationScanner()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected 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.since 2021.15, doesn't take into account @Repeatable annotations, prefer to usegetAnnotations(Class, Class)
instead.<T extends Annotation>
List<T>getAnnotations(Class<?> clazz, Class<T> annotationClass)
<T extends Annotation>
TgetFirstAnnotation(Class<?> clazz, Class<T> annotationType)
void
scan(Class<?> clazz)
Deprecated.since 2021.15, doesn't take into account @Repeatable annotations, prefer to usegetAnnotations(Class, Class)
instead.
-
-
-
Method Detail
-
scan
@Deprecated(since="2021.15") public void scan(Class<?> clazz)
Deprecated.since 2021.15, doesn't take into account @Repeatable annotations, prefer to usegetAnnotations(Class, Class)
instead.
-
getAnnotations
@Deprecated(since="2021.15") public List<? extends Annotation> getAnnotations(Class<?> clazz)
Deprecated.since 2021.15, doesn't take into account @Repeatable annotations, prefer to usegetAnnotations(Class, Class)
instead.
-
getAnnotation
public <T extends Annotation> T getAnnotation(Class<?> clazz, Class<T> annotationType)
-
getFirstAnnotation
public <T extends Annotation> T getFirstAnnotation(Class<?> clazz, Class<T> annotationType)
-
getAnnotations
public <T extends Annotation> List<T> getAnnotations(Class<?> clazz, Class<T> annotationClass)
-
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
protected List<Annotation> collectAnnotations(Class<?> clazz)
TODO when collecting annotations annotated withInherited
they will be collected twice.
-
-