Package | Description |
---|---|
org.dromara.hutool.core.annotation |
注解包,提供增强型注解和注解工具类,处理包括:
注解元素(AnnotatedElement)上的注解。 |
org.dromara.hutool.core.annotation.elements |
AnnotatedElement对象实现
|
Class and Description |
---|
CombinationAnnotatedElement
组合注解 对JDK的原生注解机制做一个增强,支持类似Spring的组合注解。
|
Class and Description |
---|
CombinationAnnotatedElement
组合注解 对JDK的原生注解机制做一个增强,支持类似Spring的组合注解。
|
HierarchicalAnnotatedElements
表示一组处于在层级结构中具有关联关系的
AnnotatedElement ,创建实例时,
将扫描指定AnnotatedElement 的层级结构中的所有AnnotatedElement ,
并将其包装为MetaAnnotatedElement 。 |
MetaAnnotatedElement
注解元素映射,用于包装一个
AnnotatedElement ,然后将被包装的元素上,
直接声明的注解以及这些注解的元组全部解析为ResolvedAnnotationMapping 。 |
RepeatableMetaAnnotatedElement
支持可重复注解的增强
AnnotatedElement ,
功能与MetaAnnotatedElement 类似,但是存在下述差异:
限制以同一根注解延伸出的树结构上——而不是AnnotatedElement 上——每种类型注解只能保留一个,
即当AnnotatedElement 存在多个根注解有相同的元注解时,这些元注解会都会被扫描到;
支持扫描AnnotatedElement 可重复注解,即当当前实例指定的RepeatableAnnotationCollector
支持从AnnotatedElement 上直接声明的注解中获得可重复注解时,
则将会自动将其展开直到不为容器注解为止。 |
Copyright © 2025. All rights reserved.