类的使用
cn.taketoday.core.annotation.RepeatableContainers
使用RepeatableContainers的程序包
程序包
说明
Core support package for annotations, meta-annotations, and merged
annotations with attribute overrides.
-
cn.taketoday.core.annotation中RepeatableContainers的使用
修饰符和类型类说明private static classA single explicit mapping.private static classStandardRepeatableContainersimplementation that searches using Java's@Repeatableannotation.修饰符和类型字段说明static final RepeatableContainersRepeatableContainers.NONENo repeatable containers.private final RepeatableContainersRepeatableContainers.parentprivate final RepeatableContainersAnnotationTypeMappings.Cache.repeatableContainersprivate final RepeatableContainersAnnotationTypeMappings.repeatableContainersprivate RepeatableContainersMergedAnnotations.Search.repeatableContainersprivate final RepeatableContainersTypeMappedAnnotations.IsPresent.repeatableContainersprivate final RepeatableContainersTypeMappedAnnotations.repeatableContainers修饰符和类型方法说明RepeatableContainers.and(Class<? extends Annotation> container, Class<? extends Annotation> repeatable) Add an additional explicit relationship between a container and repeatable annotation.static RepeatableContainersRepeatableContainers.none()Create aRepeatableContainersinstance that does not expand any repeatable annotations.static RepeatableContainersRepeatableContainers.standard()Create aRepeatableContainersinstance that searches using Java's@Repeatableannotation.static RepeatableContainersRepeatableContainers.valueOf(Class<? extends Annotation> repeatable, Class<? extends Annotation> container) Create aRepeatableContainersinstance that uses predefined repeatable and container types.修饰符和类型方法说明(专用程序包) 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) Create a newMergedAnnotationsinstance from the specified annotations.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) Create a newMergedAnnotationsinstance containing all annotations and meta-annotations from the specified element and, depending on theMergedAnnotations.SearchStrategy, related inherited elements.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) MergedAnnotations.Search.withRepeatableContainers(RepeatableContainers repeatableContainers) Configure theRepeatableContainersto use.限定符构造器说明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.(专用程序包)ExplicitRepeatableContainer(RepeatableContainers parent, Class<? extends Annotation> repeatable, Class<? extends Annotation> container) (专用程序包)IsPresent(RepeatableContainers repeatableContainers, AnnotationFilter filter, boolean directOnly) privateprivateTypeMappedAnnotations(Object source, Annotation[] annotations, RepeatableContainers repeatableContainers, AnnotationFilter annotationFilter) privateTypeMappedAnnotations(AnnotatedElement element, MergedAnnotations.SearchStrategy searchStrategy, Predicate<Class<?>> searchEnclosingClass, RepeatableContainers repeatableContainers, AnnotationFilter annotationFilter)