接口的使用
cn.taketoday.core.annotation.MergedAnnotations
使用MergedAnnotations的程序包
程序包
说明
Core support package for annotations, meta-annotations, and merged
annotations with attribute overrides.
Core support package for type introspection.
Support classes for reading annotation and class-level metadata.
-
cn.taketoday.core.annotation中MergedAnnotations的使用
修饰符和类型类说明(专用程序包) final classMergedAnnotationsimplementation backed by aCollectionofMergedAnnotationinstances that represent direct annotations.(专用程序包) final classMergedAnnotationsimplementation that searches for and adapts annotations and meta-annotations usingAnnotationTypeMappings.修饰符和类型字段说明(专用程序包) static final MergedAnnotationsTypeMappedAnnotations.NONEShared instance that can be used when there are no annotations.修饰符和类型方法说明private static MergedAnnotationsAnnotatedElementUtils.findAnnotations(AnnotatedElement element) private static MergedAnnotationsAnnotatedElementUtils.findRepeatableAnnotations(AnnotatedElement element, Class<? extends Annotation> containerType, Class<? extends Annotation> annotationType) static MergedAnnotationsMergedAnnotations.from(Annotation... annotations) Create a newMergedAnnotationsinstance from the specified annotations.static MergedAnnotationsMergedAnnotations.from(Object source, Annotation... annotations) Create a newMergedAnnotationsinstance from the specified annotations.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) Create a newMergedAnnotationsinstance containing all annotations and meta-annotations from the specified element.static MergedAnnotationsMergedAnnotations.from(AnnotatedElement element, MergedAnnotations.SearchStrategy searchStrategy) 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) 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) MergedAnnotations.Search.from(AnnotatedElement element) Perform a search for merged annotations beginning with the suppliedAnnotatedElement(such as aClassorMethod), using the configuration in thisSearchinstance.(专用程序包) 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) private static MergedAnnotationsAnnotatedElementUtils.getAnnotations(AnnotatedElement element) private static MergedAnnotationsAnnotatedElementUtils.getRepeatableAnnotations(AnnotatedElement element, Class<? extends Annotation> containerType, Class<? extends Annotation> annotationType) static MergedAnnotationsMergedAnnotations.valueOf(Collection<MergedAnnotation<?>> annotations) Create a newMergedAnnotationsinstance from the specified collection of directly present annotations.(专用程序包) static MergedAnnotationsMergedAnnotationsCollection.valueOf(Collection<MergedAnnotation<?>> annotations) 修饰符和类型方法说明private static IntegerOrderUtils.findOrder(MergedAnnotations annotations) (专用程序包) static IntegerOrderUtils.getOrderFromAnnotations(AnnotatedElement element, MergedAnnotations annotations) Return the order from the specified annotation collection. -
cn.taketoday.core.type中MergedAnnotations的使用
修饰符和类型字段说明private final MergedAnnotationsStandardAnnotationMetadata.mergedAnnotationsprivate final MergedAnnotationsStandardMethodMetadata.mergedAnnotations修饰符和类型方法说明AnnotatedTypeMetadata.getAnnotations()Get annotation details based on the direct annotations and meta-annotations of the underlying element.StandardAnnotationMetadata.getAnnotations()StandardMethodMetadata.getAnnotations() -
cn.taketoday.core.type.classreading中MergedAnnotations的使用
修饰符和类型字段说明private final MergedAnnotationsSimpleAnnotationMetadata.annotationsprivate final MergedAnnotationsSimpleMethodMetadata.annotations限定符构造器说明(专用程序包)SimpleAnnotationMetadata(String className, int access, String enclosingClassName, String superClassName, boolean independentInnerClass, Set<String> interfaceNames, Set<String> memberClassNames, Set<MethodMetadata> declaredMethods, MergedAnnotations annotations) (专用程序包)SimpleMethodMetadata(String methodName, int access, String declaringClassName, String returnTypeName, Object source, MergedAnnotations annotations)