public class AnnotationExtendUtils extends Object
| 构造器和说明 |
|---|
AnnotationExtendUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <A extends Annotation> |
findMergedAnnotation(Method method,
Class<?> clazz,
Class<A> annotationType)
查找方法及其类上的指定注解,优先返回方法上的。
|
static <A extends Annotation> |
isAnnotationPresentIncludeMethod(Class<?> clazz,
Class<A> annotationType)
判断某个类及其公有方法上是否存在指定注解。
|
public static <A extends Annotation> A findMergedAnnotation(Method method, Class<?> clazz, Class<A> annotationType)
A - 注解泛型参数method - 方法clazz - 类型annotationType - 注解类型public static <A extends Annotation> boolean isAnnotationPresentIncludeMethod(Class<?> clazz, Class<A> annotationType)
A - 注解泛型参数clazz - 类annotationType - 注解类型Copyright © 2024. All rights reserved.