接口的使用
cn.taketoday.core.annotation.MergedAnnotationSelector
使用MergedAnnotationSelector的程序包
程序包
说明
Core support package for annotations, meta-annotations, and merged
annotations with attribute overrides.
-
cn.taketoday.core.annotation中MergedAnnotationSelector的使用
修饰符和类型类说明private static classMergedAnnotationSelectorto select the first directly declared annotation.private static classMergedAnnotationSelectorto select the nearest annotation.修饰符和类型字段说明private static final MergedAnnotationSelector<?>MergedAnnotationSelectors.FIRST_DIRECTLY_DECLAREDprivate static final MergedAnnotationSelector<?>MergedAnnotationSelectors.NEARESTprivate final MergedAnnotationSelector<A>TypeMappedAnnotations.MergedAnnotationFinder.selector修饰符和类型方法说明static <A extends Annotation>
MergedAnnotationSelector<A>MergedAnnotationSelectors.firstDirectlyDeclared()Select the first directly declared annotation when possible.static <A extends Annotation>
MergedAnnotationSelector<A>MergedAnnotationSelectors.nearest()Select the nearest annotation, i.e. the one with the lowest distance.修饰符和类型方法说明private <A extends Annotation>
MergedAnnotation<A>MergedAnnotationsCollection.find(Object requiredType, Predicate<? super MergedAnnotation<A>> predicate, MergedAnnotationSelector<A> selector) <A extends Annotation>
MergedAnnotation<A>MergedAnnotations.get(Class<A> annotationType, Predicate<? super MergedAnnotation<A>> predicate, MergedAnnotationSelector<A> selector) Get a matching annotation or meta-annotation of the specified type, orMergedAnnotation.missing()if none is present.<A extends Annotation>
MergedAnnotation<A>MergedAnnotations.get(String annotationType, Predicate<? super MergedAnnotation<A>> predicate, MergedAnnotationSelector<A> selector) Get a matching annotation or meta-annotation of the specified type, orMergedAnnotation.missing()if none is present.<A extends Annotation>
MergedAnnotation<A>MergedAnnotationsCollection.get(Class<A> annotationType, Predicate<? super MergedAnnotation<A>> predicate, MergedAnnotationSelector<A> selector) <A extends Annotation>
MergedAnnotation<A>MergedAnnotationsCollection.get(String annotationType, Predicate<? super MergedAnnotation<A>> predicate, MergedAnnotationSelector<A> selector) <A extends Annotation>
MergedAnnotation<A>TypeMappedAnnotations.get(Class<A> annotationType, Predicate<? super MergedAnnotation<A>> predicate, MergedAnnotationSelector<A> selector) <A extends Annotation>
MergedAnnotation<A>TypeMappedAnnotations.get(String annotationType, Predicate<? super MergedAnnotation<A>> predicate, MergedAnnotationSelector<A> selector) 限定符构造器说明(专用程序包)MergedAnnotationFinder(Object requiredType, Predicate<? super MergedAnnotation<A>> predicate, MergedAnnotationSelector<A> selector)