public class AnnotationUtils
extends org.springframework.core.annotation.AnnotationUtils
AnnotationUtils
构造器和说明 |
---|
AnnotationUtils() |
限定符和类型 | 方法和说明 |
---|---|
static boolean |
hasClassAnnotationPresent(Class<?> clazz,
Class<? extends Annotation>[] annotations)
检测一个类是否含有 annotations 中的任意一个注解
|
static boolean |
hasMethodAnnotationPresent(Method method,
Class<? extends Annotation>[] annotations)
检测一个方法是否含有 annotations 中的任意一个注解
|
clearCache, findAnnotation, findAnnotation, findAnnotation, findAnnotationDeclaringClass, findAnnotationDeclaringClassForTypes, getAnnotation, getAnnotation, getAnnotation, getAnnotationAttributes, getAnnotationAttributes, getAnnotationAttributes, getAnnotationAttributes, getAnnotationAttributes, getAnnotations, getAnnotations, getDeclaredRepeatableAnnotations, getDeclaredRepeatableAnnotations, getDefaultValue, getDefaultValue, getDefaultValue, getDefaultValue, getRepeatableAnnotations, getRepeatableAnnotations, getValue, getValue, isAnnotationDeclaredLocally, isAnnotationInherited, isAnnotationMetaPresent, isCandidateClass, isCandidateClass, isCandidateClass, isInJavaLangAnnotationPackage, isInJavaLangAnnotationPackage, postProcessAnnotationAttributes, registerDefaultValues, synthesizeAnnotation, synthesizeAnnotation, synthesizeAnnotation, validateAnnotation
public static boolean hasClassAnnotationPresent(Class<?> clazz, Class<? extends Annotation>[] annotations)
clazz
- 待验证的类annotations
- 检测是否含有的注解public static boolean hasMethodAnnotationPresent(Method method, Class<? extends Annotation>[] annotations)
method
- 待验证的方法annotations
- 检测是否含有的注解Copyright © 2022 buession.com Inc.. All rights reserved.