public class AliasAnnotationPostProcessor extends Object implements SynthesizedAnnotationPostProcessor
用于处理注解对象中带有Alias
注解的属性。
当该处理器执行完毕后,Alias
注解指向的目标注解的属性将会被包装并替换为
ForceAliasedAnnotationAttribute
。
Alias
,
ForceAliasedAnnotationAttribute
ALIAS_ANNOTATION_POST_PROCESSOR, ALIAS_LINK_ANNOTATION_POST_PROCESSOR, MIRROR_LINK_ANNOTATION_POST_PROCESSOR
Constructor and Description |
---|
AliasAnnotationPostProcessor() |
Modifier and Type | Method and Description |
---|---|
int |
order()
在一组后置处理器中被调用的顺序,越小越靠前
|
void |
process(SynthesizedAnnotation synthesizedAnnotation,
AnnotationSynthesizer synthesizer)
给定指定被合成注解与其所属的合成注解聚合器实例,经过处理后返回最终
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compareTo
public int order()
SynthesizedAnnotationPostProcessor
order
in interface SynthesizedAnnotationPostProcessor
public void process(SynthesizedAnnotation synthesizedAnnotation, AnnotationSynthesizer synthesizer)
SynthesizedAnnotationPostProcessor
process
in interface SynthesizedAnnotationPostProcessor
synthesizedAnnotation
- 合成的注解synthesizer
- 注解合成器Copyright © 2024. All rights reserved.