public interface AnnotationAttribute
用于在HierarchicalAnnotation中表示注解的某个特定属性,
等同于绑定了调用对象的Method方法。
提供了默认实现CacheableAnnotationAttribute,
与扩展接口WrappedAnnotationAttribute。
WrappedAnnotationAttribute| 限定符和类型 | 方法和说明 |
|---|---|
Annotation |
getAnnotation()
获取注解对象
|
default Class<?> |
getAnnotationType()
获取声明属性的注解类
|
Method |
getAttribute()
获取注解属性对应的方法
|
default String |
getAttributeName()
获取属性名称
|
default Class<?> |
getAttributeType()
获取属性类型
|
Object |
getValue()
获取注解属性
|
boolean |
isValueEquivalentToDefaultValue()
该注解属性的值是否等于默认值
|
default boolean |
isWrapped()
当前注解属性是否已经被
WrappedAnnotationAttribute包装 |
Annotation getAnnotation()
Method getAttribute()
default Class<?> getAnnotationType()
default String getAttributeName()
Object getValue()
boolean isValueEquivalentToDefaultValue()
default Class<?> getAttributeType()
default boolean isWrapped()
WrappedAnnotationAttribute包装Copyright © 2022. All rights reserved.