接口的使用
org.springframework.core.annotation.MergedAnnotationSelector
使用MergedAnnotationSelector的程序包 程序包 说明 org.springframework.core.annotation Core support package for annotations, meta-annotations, and merged annotations with attribute overrides.org.springframework.core.annotation中MergedAnnotationSelector的使用
返回MergedAnnotationSelector的org.springframework.core.annotation中的方法 修饰符和类型 方法 说明 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.参数类型为MergedAnnotationSelector的org.springframework.core.annotation中的方法 修饰符和类型 方法 说明 <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.