public final class AnnotationUtils extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static <A extends Annotation> |
findAnnotation(AnnotatedElement annotationSupplier,
Class<A> annotationType)
级联查找元注释
|
static <A extends Annotation> |
findAnnotation(Class<?> annotationSupplier,
Class<A> annotationType)
级联查找元注释
|
static <A extends Annotation> |
findAnnotation(Method annotationSupplier,
Class<A> annotationType)
级联查找元注释
|
static org.springframework.core.annotation.AnnotationAttributes |
findAnnotationAttributes(AnnotatedElement annotationSupplier,
Class<? extends Annotation> annotationType)
查找元注释并获取AnnotationAttributes实例
|
static org.springframework.core.annotation.AnnotationAttributes |
findAnnotationAttributes(Class<?> annotationSupplier,
Class<? extends Annotation> annotationType)
查找元注释并获取AnnotationAttributes实例
|
static org.springframework.core.annotation.AnnotationAttributes |
findAnnotationAttributes(Method annotationSupplier,
Class<? extends Annotation> annotationType)
查找元注释并获取AnnotationAttributes实例
|
static <A extends Annotation> |
getAnnotation(AnnotatedElement annotationSupplier,
Class<A> annotationType)
单层查找元注释
|
static <A extends Annotation> |
getAnnotation(Class<?> annotationSupplier,
Class<A> annotationType)
单层查找元注释
|
static <A extends Annotation> |
getAnnotation(Method annotationSupplier,
Class<A> annotationType)
单层查找元注释
|
public static org.springframework.core.annotation.AnnotationAttributes findAnnotationAttributes(Class<?> annotationSupplier, Class<? extends Annotation> annotationType)
annotationSupplier - 查找起点annotationType - 元注释类型findAnnotation(Class, Class)public static org.springframework.core.annotation.AnnotationAttributes findAnnotationAttributes(Method annotationSupplier, Class<? extends Annotation> annotationType)
annotationSupplier - 查找起点annotationType - 元注释类型findAnnotation(Method, Class)public static org.springframework.core.annotation.AnnotationAttributes findAnnotationAttributes(AnnotatedElement annotationSupplier, Class<? extends Annotation> annotationType)
annotationSupplier - 查找起点annotationType - 元注释类型findAnnotation(AnnotatedElement, Class)@Nullable public static <A extends Annotation> A findAnnotation(Class<?> annotationSupplier, Class<A> annotationType)
A - 元注释泛型annotationSupplier - 查找起点annotationType - 元注释类型getAnnotation(Class, Class)@Nullable public static <A extends Annotation> A findAnnotation(AnnotatedElement annotationSupplier, Class<A> annotationType)
A - 元注释泛型annotationSupplier - 查找起点annotationType - 元注释类型getAnnotation(AnnotatedElement, Class)@Nullable public static <A extends Annotation> A findAnnotation(Method annotationSupplier, Class<A> annotationType)
A - 元注释泛型annotationSupplier - 查找起点annotationType - 元注释类型getAnnotation(Method, Class)@Nullable public static <A extends Annotation> A getAnnotation(Class<?> annotationSupplier, Class<A> annotationType)
A - 元注释泛型annotationSupplier - 查找起点annotationType - 元注释类型@Nullable public static <A extends Annotation> A getAnnotation(AnnotatedElement annotationSupplier, Class<A> annotationType)
A - 元注释泛型annotationSupplier - 查找起点annotationType - 元注释类型@Nullable public static <A extends Annotation> A getAnnotation(Method annotationSupplier, Class<A> annotationType)
A - 元注释泛型annotationSupplier - 查找起点annotationType - 元注释类型Copyright © 2022. All rights reserved.