接口的使用
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.static final AnnotationFilterAnnotationFilter.JAVAstatic 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修饰符和类型方法说明static AnnotationFilterCreate a newAnnotationFilterthat matches annotations in the specified packages.修饰符和类型方法说明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.MergedAnnotations.Search.withAnnotationFilter(AnnotationFilter annotationFilter) Configure theAnnotationFilterto use.