public static class Annotations.OnClass extends Object
Modifier and Type | Method and Description |
---|---|
<T extends Annotation> |
find(Class<T> annotationClass)
Return the first annotation of the specified class.
|
Stream<Annotation> |
findAll()
Returns a stream of all the annotations found.
|
<T extends Annotation> |
findAll(Class<T> annotationClass)
Returns a stream of all the annotations found.
|
Annotations.OnClass |
includingMetaAnnotations() |
Annotations.OnClass |
traversingInterfaces() |
Annotations.OnClass |
traversingSuperclasses() |
public Annotations.OnClass traversingSuperclasses()
public Annotations.OnClass traversingInterfaces()
public Annotations.OnClass includingMetaAnnotations()
public <T extends Annotation> Optional<T> find(Class<T> annotationClass)
T
- the annotation type.annotationClass
- the class of the annotation to return.public <T extends Annotation> Stream<T> findAll(Class<T> annotationClass)
public Stream<Annotation> findAll()
Copyright © 2013-2018–2019 SeedStack. All rights reserved.