Package | Description |
---|---|
cn.hutool.core.annotation |
注解包,提供增强型注解和注解工具类
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractLinkAnnotationPostProcessor
SynthesizedAnnotationPostProcessor 的基本实现,
用于处理注解中带有Link 注解的属性。 |
class |
AliasAnnotationPostProcessor
|
class |
AliasLinkAnnotationPostProcessor
用于处理注解对象中带有
Link 注解,且Link.type() 为
RelationType.ALIAS_FOR 或RelationType.FORCE_ALIAS_FOR 的属性。当该处理器执行完毕后, Link 注解指向的目标注解的属性将会被包装并替换为
AliasedAnnotationAttribute 或ForceAliasedAnnotationAttribute 。 |
class |
MirrorLinkAnnotationPostProcessor
用于处理注解对象中带有
Link 注解,且Link.type() 为RelationType.MIRROR_FOR 的属性。当该处理器执行完毕后,原始合成注解中被 Link 注解的属性与Link 注解指向的目标注解的属性,
都将会被被包装并替换为MirroredAnnotationAttribute 。 |
Modifier and Type | Field and Description |
---|---|
protected Collection<SynthesizedAnnotationPostProcessor> |
AbstractAnnotationSynthesizer.postProcessors
合成注解属性处理器
|
Modifier and Type | Method and Description |
---|---|
Collection<SynthesizedAnnotationPostProcessor> |
AnnotationSynthesizer.getAnnotationPostProcessors()
获取合成注解后置处理器
|
Collection<SynthesizedAnnotationPostProcessor> |
AbstractAnnotationSynthesizer.getAnnotationPostProcessors()
获取合成注解后置处理器
|
Modifier and Type | Method and Description |
---|---|
default int |
SynthesizedAnnotationPostProcessor.compareTo(SynthesizedAnnotationPostProcessor o)
比较两个后置处理器的
order() 返回值 |
Constructor and Description |
---|
AbstractAnnotationSynthesizer(T source,
SynthesizedAnnotationSelector annotationSelector,
Collection<SynthesizedAnnotationPostProcessor> annotationPostProcessors,
AnnotationScanner annotationScanner)
构造一个注解合成器
|
GenericSynthesizedAggregateAnnotation(List<Annotation> source,
SynthesizedAnnotationSelector annotationSelector,
SynthesizedAnnotationAttributeProcessor attributeProcessor,
Collection<SynthesizedAnnotationPostProcessor> annotationPostProcessors,
AnnotationScanner annotationScanner)
基于指定根注解,为其层级结构中的全部注解构造一个合成注解
|
Copyright © 2024. All rights reserved.