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