public class AnnotationManager<T> extends HashMap<Class<? extends Annotation>,ExtensionField> implements AnnotationCompatibleManager<T>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| 限定符和类型 | 方法和说明 |
|---|---|
static <D> AnnotationManager |
build(Class<D> annotationInterface) |
T |
getAnnotationBy(Class<?> method)
获取类上的注解接口
|
T |
getAnnotationBy(Constructor<?> constructor)
获取构造函数上的注解接口
|
T |
getAnnotationBy(Field field)
获取字段上的注解接口
|
T |
getAnnotationBy(Method method)
获取方法上的注解接口
|
T |
getAnnotationBy(Parameter parameter)
获取参数上的注解接口
|
void |
register(Class<? extends Annotation> annotationType)
注册
|
void |
register(Class<? extends Annotation> annotationType,
ExtensionField extensionField)
注册
|
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesequals, hashCode, toStringpublic static <D> AnnotationManager build(Class<D> annotationInterface)
public void register(Class<? extends Annotation> annotationType)
AnnotationCompatibleManagerregister 在接口中 AnnotationCompatibleManager<T>annotationType - 注解类型public void register(Class<? extends Annotation> annotationType, ExtensionField extensionField)
AnnotationCompatibleManagerregister 在接口中 AnnotationCompatibleManager<T>annotationType - 注解类型extensionField - 兼容字段public T getAnnotationBy(Method method)
AnnotationCompatibleManagergetAnnotationBy 在接口中 AnnotationCompatibleManager<T>public T getAnnotationBy(Constructor<?> constructor)
AnnotationCompatibleManagergetAnnotationBy 在接口中 AnnotationCompatibleManager<T>public T getAnnotationBy(Field field)
AnnotationCompatibleManagergetAnnotationBy 在接口中 AnnotationCompatibleManager<T>public T getAnnotationBy(Class<?> method)
AnnotationCompatibleManagergetAnnotationBy 在接口中 AnnotationCompatibleManager<T>public T getAnnotationBy(Parameter parameter)
AnnotationCompatibleManagergetAnnotationBy 在接口中 AnnotationCompatibleManager<T>Copyright © 2022. All rights reserved.