class JavaAnnotationReader extends Object implements AnnotationReader
| 限定符和类型 | 字段和说明 |
|---|---|
protected AnnotatedElement |
element |
| 构造器和说明 |
|---|
JavaAnnotationReader(AnnotatedElement el) |
| 限定符和类型 | 方法和说明 |
|---|---|
<T extends Annotation> |
getAnnotation(Class<T> annotationType) |
Annotation[] |
getAnnotations() |
<T extends Annotation> |
isAnnotationPresent(Class<T> annotationType) |
protected final AnnotatedElement element
public JavaAnnotationReader(AnnotatedElement el)
public <T extends Annotation> T getAnnotation(Class<T> annotationType)
getAnnotation 在接口中 AnnotationReaderpublic <T extends Annotation> boolean isAnnotationPresent(Class<T> annotationType)
isAnnotationPresent 在接口中 AnnotationReaderpublic Annotation[] getAnnotations()
getAnnotations 在接口中 AnnotationReaderCopyright © 2020. All rights reserved.