接口 AnnotatedElementMetadata
-
- 所有超级接口:
AnnotatedElement
- 所有已知实现类:
CombinationAnnotationElement
public interface AnnotatedElementMetadata extends AnnotatedElement
注解元素的元数据- 作者:
- 思追(shaco)
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 <A extends Annotation>
AnnotationAttributesgetAnnotationAttributes(Class<A> annotationType)获取指定注解的所有属性<T,A extends Annotation>
Optional<T>getValue(Class<A> annotationType, String attributeName, Class<T> type)获取注解的指定属性值-
从接口继承的方法 java.lang.reflect.AnnotatedElement
getAnnotation, getAnnotations, getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotations, getDeclaredAnnotationsByType, isAnnotationPresent
-
-
-
-
方法详细资料
-
getAnnotationAttributes
<A extends Annotation> AnnotationAttributes getAnnotationAttributes(Class<A> annotationType)
获取指定注解的所有属性- 类型参数:
A- 注解泛型- 参数:
annotationType- 注解类型- 返回:
AnnotationAttributes
-
getValue
<T,A extends Annotation> Optional<T> getValue(Class<A> annotationType, String attributeName, Class<T> type)
获取注解的指定属性值- 类型参数:
T- 值类型泛型A- 注解泛型- 参数:
annotationType- 注解类型attributeName- 注解的属性type- 值类型- 返回:
-
-