public interface Annotated
| 限定符和类型 | 方法和说明 |
|---|---|
Annotation[] |
getAnnotations()
获取全部注解
|
<T extends Annotation> |
getDeclaredAnnotation(Class<T> annotationClass)
获取某个注解
|
<T extends Annotation> T getDeclaredAnnotation(Class<T> annotationClass)
T - annotationClass - Annotation[] getAnnotations()
Copyright © 2020. All rights reserved.