@FunctionalInterface public interface SynthesizedAnnotationSelector
SynthesizedAggregateAnnotation
中用于从一批相同的注解对象中筛选最终用于合成注解对象。Modifier and Type | Interface and Description |
---|---|
static class |
SynthesizedAnnotationSelector.FarthestAndNewestPrioritySelector
返回距离根对象更远的注解,当距离一样时优先返回新注解
|
static class |
SynthesizedAnnotationSelector.FarthestAndOldestPrioritySelector
返回距离根对象更远的注解,当距离一样时优先返回旧注解
|
static class |
SynthesizedAnnotationSelector.NearestAndNewestPrioritySelector
返回距离根对象更近的注解,当距离一样时优先返回新注解
|
static class |
SynthesizedAnnotationSelector.NearestAndOldestPrioritySelector
返回距离根对象更近的注解,当距离一样时优先返回旧注解
|
Modifier and Type | Field and Description |
---|---|
static SynthesizedAnnotationSelector |
FARTHEST_AND_NEWEST_PRIORITY
返回距离根对象更远的注解,当距离一样时优先返回新注解
|
static SynthesizedAnnotationSelector |
FARTHEST_AND_OLDEST_PRIORITY
返回距离根对象更远的注解,当距离一样时优先返回旧注解
|
static SynthesizedAnnotationSelector |
NEAREST_AND_NEWEST_PRIORITY
返回距离根对象更近的注解,当距离一样时优先返回新注解
|
static SynthesizedAnnotationSelector |
NEAREST_AND_OLDEST_PRIORITY
返回距离根对象更近的注解,当距离一样时优先返回旧注解
|
Modifier and Type | Method and Description |
---|---|
<T extends SynthesizedAnnotation> |
choose(T oldAnnotation,
T newAnnotation)
比较两个被合成的注解,选择其中的一个并返回
|
static final SynthesizedAnnotationSelector NEAREST_AND_OLDEST_PRIORITY
static final SynthesizedAnnotationSelector NEAREST_AND_NEWEST_PRIORITY
static final SynthesizedAnnotationSelector FARTHEST_AND_OLDEST_PRIORITY
static final SynthesizedAnnotationSelector FARTHEST_AND_NEWEST_PRIORITY
<T extends SynthesizedAnnotation> T choose(T oldAnnotation, T newAnnotation)
T
- 复合注解类型oldAnnotation
- 已存在的注解,该参数不允许为空newAnnotation
- 新获取的注解,该参数不允许为空Copyright © 2024. All rights reserved.