public interface Annotatable
| Modifier and Type | Method and Description |
|---|---|
<T extends Annotation> |
getAnnotation(Class<T> annotationClass)
Get specified instance of an annotation defined on element.
|
List<? extends Annotation> |
getAnnotations()
Get all annotations defined on element.
|
List<? extends Annotation> getAnnotations()
<T extends Annotation> T getAnnotation(Class<T> annotationClass)
T - Class Type of annotation.annotationClass - The annotation class.Copyright © 2010–2021. All rights reserved.