类 TypeMappedAnnotations.AggregatesCollector
java.lang.Object
cn.taketoday.core.annotation.TypeMappedAnnotations.AggregatesCollector
private class TypeMappedAnnotations.AggregatesCollector
extends Object
implements AnnotationsProcessor<Object,List<TypeMappedAnnotations.Aggregate>>
AnnotationsProcessor that collects TypeMappedAnnotations.Aggregate instances.-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private voidaddAggregateAnnotations(List<Annotation> aggregateAnnotations, Annotation[] annotations) private TypeMappedAnnotations.AggregatecreateAggregate(int aggregateIndex, Object source, Annotation[] annotations) doWithAnnotations(Object criteria, int aggregateIndex, Object source, Annotation[] annotations) Called when an array of annotations can be processed.finish(List<TypeMappedAnnotations.Aggregate> processResult) Get the final result to be returned.private ArrayList<Annotation>getAggregateAnnotations(Annotation[] annotations) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 cn.taketoday.core.annotation.AnnotationsProcessor
doWithAggregate
-
字段详细资料
-
aggregates
-
-
构造器详细资料
-
AggregatesCollector
private AggregatesCollector()
-
-
方法详细资料
-
doWithAnnotations
@Nullable public List<TypeMappedAnnotations.Aggregate> doWithAnnotations(Object criteria, 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,List<TypeMappedAnnotations.Aggregate>> - 参数:
criteria- 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
-
createAggregate
private TypeMappedAnnotations.Aggregate createAggregate(int aggregateIndex, @Nullable Object source, Annotation[] annotations) -
getAggregateAnnotations
-
addAggregateAnnotations
private void addAggregateAnnotations(List<Annotation> aggregateAnnotations, Annotation[] annotations) -
finish
public List<TypeMappedAnnotations.Aggregate> finish(@Nullable List<TypeMappedAnnotations.Aggregate> processResult) 从接口复制的说明:AnnotationsProcessorGet the final result to be returned. By default this method returns the last process result.- 指定者:
finish在接口中AnnotationsProcessor<Object,List<TypeMappedAnnotations.Aggregate>> - 参数:
processResult- the last early exit result, ornullif none- 返回:
- the final result to be returned to the caller
-