类 TypeMappedAnnotations.MergedAnnotationFinder<A extends Annotation>
java.lang.Object
cn.taketoday.core.annotation.TypeMappedAnnotations.MergedAnnotationFinder<A>
- 所有已实现的接口:
AnnotationsProcessor<Object,MergedAnnotation<A>>
private class TypeMappedAnnotations.MergedAnnotationFinder<A extends Annotation>
extends Object
implements AnnotationsProcessor<Object,MergedAnnotation<A>>
AnnotationsProcessor that finds a single MergedAnnotation.-
字段概要
字段修饰符和类型字段说明private final Predicate<? super MergedAnnotation<A>>private final Objectprivate MergedAnnotation<A>private final MergedAnnotationSelector<A> -
构造器概要
构造器构造器说明MergedAnnotationFinder(Object requiredType, Predicate<? super MergedAnnotation<A>> predicate, MergedAnnotationSelector<A> selector) -
方法概要
修饰符和类型方法说明doWithAggregate(Object context, int aggregateIndex) Called when an aggregate is about to be processed.doWithAnnotations(Object type, int aggregateIndex, Object source, Annotation[] annotations) Called when an array of annotations can be processed.finish(MergedAnnotation<A> result) Get the final result to be returned.private MergedAnnotation<A>process(Object type, int aggregateIndex, Object source, Annotation annotation) private voidupdateLastResult(MergedAnnotation<A> candidate)
-
字段详细资料
-
requiredType
-
selector
-
predicate
-
result
-
-
构造器详细资料
-
MergedAnnotationFinder
MergedAnnotationFinder(Object requiredType, @Nullable Predicate<? super MergedAnnotation<A>> predicate, @Nullable MergedAnnotationSelector<A> selector)
-
-
方法详细资料
-
doWithAggregate
从接口复制的说明:AnnotationsProcessorCalled when an aggregate is about to be processed. This method may return anon-nullresult to short-circuit any further processing.- 指定者:
doWithAggregate在接口中AnnotationsProcessor<Object,MergedAnnotation<A extends Annotation>> - 参数:
context- the context information relevant to the processoraggregateIndex- the aggregate index about to be processed- 返回:
- a
non-nullresult if no further processing is required
-
doWithAnnotations
@Nullable public MergedAnnotation<A> doWithAnnotations(Object type, int aggregateIndex, @Nullable Object source, Annotation[] annotations) 从接口复制的说明:AnnotationsProcessorCalled when an array of annotations can be processed. This method may return anon-nullresult to short-circuit any further processing.- 指定者:
doWithAnnotations在接口中AnnotationsProcessor<Object,MergedAnnotation<A extends Annotation>> - 参数:
type- the context information relevant to the processoraggregateIndex- the aggregate index of the provided annotationssource- the original source of the annotations, if knownannotations- the annotations to process (this array may containnullelements)- 返回:
- a
non-nullresult if no further processing is required
-
process
@Nullable private MergedAnnotation<A> process(Object type, int aggregateIndex, @Nullable Object source, Annotation annotation) -
updateLastResult
-
finish
从接口复制的说明:AnnotationsProcessorGet the final result to be returned. By default this method returns the last process result.- 指定者:
finish在接口中AnnotationsProcessor<Object,MergedAnnotation<A extends Annotation>> - 参数:
result- the last early exit result, ornullif none- 返回:
- the final result to be returned to the caller
-