接口的使用
cn.taketoday.core.annotation.AnnotationFilter
使用AnnotationFilter的程序包
程序包
说明
Core support package for annotations, meta-annotations, and merged
annotations with attribute overrides.
-
cn.taketoday.core.annotation中AnnotationFilter的使用
修饰符和类型字段说明static final AnnotationFilterAnnotationFilter.ALLAnnotationFilterthat always matches and can be used when no relevant annotation types are expected to be present at all.private AnnotationFilterMergedAnnotations.Search.annotationFilterprivate final AnnotationFilterTypeMappedAnnotations.annotationFilterprivate final AnnotationFilterTypeMappedAnnotations.IsPresent.annotationFilterprivate final AnnotationFilterAnnotationTypeMappings.Cache.filterprivate final AnnotationFilterAnnotationTypeMappings.filterstatic final AnnotationFilterAnnotationFilter.JAVAprivate static final AnnotationFilterAnnotationUtils.JAVA_LANG_ANNOTATION_FILTERstatic final AnnotationFilterAnnotationFilter.NONEAnnotationFilterthat never matches and can be used when no filtering is needed (allowing for any annotation types to be present).static final AnnotationFilterAnnotationFilter.PLAINAnnotationFilterthat matches annotations in thejava.langandcn.taketoday.lang.Nullable,cn.taketoday.lang.NonNull类型参数类型为AnnotationFilter的cn.taketoday.core.annotation中的字段修饰符和类型字段说明private static final ConcurrentReferenceHashMap<AnnotationFilter,AnnotationTypeMappings.Cache> AnnotationTypeMappings.noRepeatablesCacheprivate static final ConcurrentReferenceHashMap<AnnotationFilter,AnnotationTypeMappings.Cache> AnnotationTypeMappings.standardRepeatablesCache修饰符和类型方法说明static AnnotationFilterCreate a newAnnotationFilterthat matches annotations in the specified packages.修饰符和类型方法说明(专用程序包) static AnnotationTypeMappingsAnnotationTypeMappings.forAnnotationType(Class<? extends Annotation> annotationType, RepeatableContainers repeatableContainers, AnnotationFilter annotationFilter) CreateAnnotationTypeMappingsfor the specified annotation type.private static AnnotationTypeMappingsAnnotationTypeMappings.forAnnotationType(Class<? extends Annotation> annotationType, RepeatableContainers repeatableContainers, AnnotationFilter annotationFilter, Set<Class<? extends Annotation>> visitedAnnotationTypes) CreateAnnotationTypeMappingsfor the specified annotation type.static MergedAnnotationsMergedAnnotations.from(Object source, Annotation[] annotations, RepeatableContainers repeatableContainers, AnnotationFilter annotationFilter) Create a newMergedAnnotationsinstance from the specified annotations.static MergedAnnotationsMergedAnnotations.from(AnnotatedElement element, MergedAnnotations.SearchStrategy searchStrategy, RepeatableContainers repeatableContainers, AnnotationFilter annotationFilter) Create a newMergedAnnotationsinstance containing all annotations and meta-annotations from the specified element and, depending on theMergedAnnotations.SearchStrategy, related inherited elements.private static MergedAnnotationsMergedAnnotations.from(AnnotatedElement element, MergedAnnotations.SearchStrategy searchStrategy, Predicate<Class<?>> searchEnclosingClass, RepeatableContainers repeatableContainers, AnnotationFilter annotationFilter) (专用程序包) static MergedAnnotationsTypeMappedAnnotations.from(Object source, Annotation[] annotations, RepeatableContainers repeatableContainers, AnnotationFilter filter) (专用程序包) static MergedAnnotationsTypeMappedAnnotations.from(AnnotatedElement element, MergedAnnotations.SearchStrategy searchStrategy, Predicate<Class<?>> searchEnclosingClass, RepeatableContainers repeatableContainers, AnnotationFilter annotationFilter) (专用程序包) static TypeMappedAnnotations.IsPresentTypeMappedAnnotations.IsPresent.get(RepeatableContainers repeatableContainers, AnnotationFilter annotationFilter, boolean directOnly) private static booleanTypeMappedAnnotations.isMappingForType(AnnotationTypeMapping mapping, AnnotationFilter filter, Object requiredType) MergedAnnotations.Search.withAnnotationFilter(AnnotationFilter annotationFilter) Configure theAnnotationFilterto use.参数类型为AnnotationFilter的cn.taketoday.core.annotation中的构造器限定符构造器说明privateAnnotationTypeMappings(RepeatableContainers repeatableContainers, AnnotationFilter filter, Class<? extends Annotation> annotationType, Set<Class<? extends Annotation>> visitedAnnotationTypes) (专用程序包)Cache(RepeatableContainers repeatableContainers, AnnotationFilter filter) Create a cache instance with the specified filter.(专用程序包)IsPresent(RepeatableContainers repeatableContainers, AnnotationFilter filter, boolean directOnly) privateTypeMappedAnnotations(Object source, Annotation[] annotations, RepeatableContainers repeatableContainers, AnnotationFilter annotationFilter) privateTypeMappedAnnotations(AnnotatedElement element, MergedAnnotations.SearchStrategy searchStrategy, Predicate<Class<?>> searchEnclosingClass, RepeatableContainers repeatableContainers, AnnotationFilter annotationFilter)