T - 注解兼容接口public interface AnnotationCompatibleManager<T>
| 限定符和类型 | 方法和说明 |
|---|---|
T |
getAnnotationBy(Class<?> method)
获取类上的注解接口
|
T |
getAnnotationBy(Constructor<?> constructor)
获取构造函数上的注解接口
|
T |
getAnnotationBy(Field field)
获取字段上的注解接口
|
T |
getAnnotationBy(Method method)
获取方法上的注解接口
|
T |
getAnnotationBy(Parameter method)
获取参数上的注解接口
|
void |
register(Class<? extends Annotation> annotationType)
注册
|
void |
register(Class<? extends Annotation> annotationType,
ExtensionField extensionField)
注册
|
void register(Class<? extends Annotation> annotationType)
annotationType - 注解类型void register(Class<? extends Annotation> annotationType, ExtensionField extensionField)
annotationType - 注解类型extensionField - 兼容字段T getAnnotationBy(Constructor<?> constructor)
constructor - Copyright © 2022. All rights reserved.