类 TypeMappedAnnotations.IsPresent
java.lang.Object
cn.taketoday.core.annotation.TypeMappedAnnotations.IsPresent
- 所有已实现的接口:
AnnotationsProcessor<Object,Boolean>
private static final class TypeMappedAnnotations.IsPresent
extends Object
implements AnnotationsProcessor<Object,Boolean>
AnnotationsProcessor used to detect if an annotation is directly
present or meta-present.-
字段概要
字段修饰符和类型字段说明private final AnnotationFilterprivate final booleanprivate final RepeatableContainersprivate static final TypeMappedAnnotations.IsPresent[]Shared instances that save us needing to create a new processor for the common combinations. -
构造器概要
构造器构造器说明IsPresent(RepeatableContainers repeatableContainers, AnnotationFilter filter, boolean directOnly) -
方法概要
修饰符和类型方法说明doWithAnnotations(Object requiredType, int aggregateIndex, Object source, Annotation[] annotations) Called when an array of annotations can be processed.(专用程序包) static TypeMappedAnnotations.IsPresentget(RepeatableContainers repeatableContainers, AnnotationFilter annotationFilter, boolean directOnly) 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 cn.taketoday.core.annotation.AnnotationsProcessor
doWithAggregate, finish
-
字段详细资料
-
SHARED
Shared instances that save us needing to create a new processor for the common combinations. -
directOnly
private final boolean directOnly -
annotationFilter
-
repeatableContainers
-
-
构造器详细资料
-
IsPresent
IsPresent(RepeatableContainers repeatableContainers, AnnotationFilter filter, boolean directOnly)
-
-
方法详细资料
-
doWithAnnotations
@Nullable public Boolean doWithAnnotations(Object requiredType, 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,Boolean> - 参数:
requiredType- 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
-
get
static TypeMappedAnnotations.IsPresent get(RepeatableContainers repeatableContainers, AnnotationFilter annotationFilter, boolean directOnly)
-