public interface AnnotationMeta extends AnnotatedMeta<Class<? extends Annotation>>
| 限定符和类型 | 方法和说明 |
|---|---|
Class<? extends Annotation> |
getAnnotationType()
获取注解类型
|
List<AnnotationAttribute> |
getAttributes()
获取注解属性列表
|
static AnnotationMeta |
of(Annotation annotation)
创建指定注解的注解元数据
|
static AnnotationMeta |
of(Class<? extends Annotation> annotationType)
创建指定注解类型的元数据
|
findAnnotation, getAnnotation, getAnnotations, getElement, isAnnotationPresentstatic AnnotationMeta of(Annotation annotation)
annotation - 注解实例static AnnotationMeta of(Class<? extends Annotation> annotationType)
annotationType - 注解类型List<AnnotationAttribute> getAttributes()
Class<? extends Annotation> getAnnotationType()
Copyright © 2021. All rights reserved.