| 程序包 | 说明 |
|---|---|
| top.xiajibagao.powerfulannotation.aggerate |
提供聚合注解相关功能
|
| top.xiajibagao.powerfulannotation.scanner |
提供用于从
AnnotatedElement及其层级结构中获取注解的各项扫描器 |
| top.xiajibagao.powerfulannotation.scanner.processor |
提供在
AbstractAnnotationScanner中使用的各项注解处理器 |
| top.xiajibagao.powerfulannotation.synthesis |
提供基于
HierarchicalAnnotation的注解合成相关类及注解 |
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
AnnotationAggregator<T>
HierarchicalAnnotation的聚合器,用于聚合具一组相关的注解,并提供一些批量操作的方法。 |
| 限定符和类型 | 类和说明 |
|---|---|
class |
GenericAnnotationAggregator<T>
AnnotationAggregator的基本实现 |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
AbstractAnnotationScanner.scan(AnnotatedElement element,
AnnotationProcessor processor,
AnnotationFilter filter)
扫描指定元素上的注解
|
void |
AnnotationScanner.scan(AnnotatedElement element,
AnnotationProcessor processor,
AnnotationFilter filter)
扫描指定元素上的注解
|
void |
AnnotationSearchMode.scan(AnnotatedElement element,
AnnotationProcessor processor,
AnnotationFilter filter)
扫描与指定元素具有关联的注解,并对其进行处理
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
AnnotationCollector<T>
用于在
AbstractAnnotationScanner扫描过程中收集注解的注解处理器,
完成扫描后,用户可以通过#getTargets()获得按照被扫描的顺序排序的注解对象 |
class |
AnnotationFinder<T>
用于在
AbstractAnnotationScanner扫描过程中查找指定注解的注解处理器。 |
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
AnnotationSynthesizer
注解合成器,以
AnnotationAggregator为原料,
用于“合成”一些与原始注解具有不同属性值的注解 |
| 限定符和类型 | 类和说明 |
|---|---|
class |
GenericAnnotationSynthesizer
AnnotationSynthesizer的基本实现,用于根据注册到实例中的注解,
根据一些规则“合成”具有与原始属性不一样的值的合成注解。 |
Copyright © 2022. All rights reserved.