public class ClassUtil
extends org.springframework.util.ClassUtils
| 构造器和说明 |
|---|
ClassUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <A extends Annotation> |
getAnnotation(org.springframework.web.method.HandlerMethod handlerMethod,
Class<A> annotationType)
获取Annotation
|
static <A extends Annotation> |
getAnnotation(Method method,
Class<A> annotationType)
获取Annotation
|
static org.springframework.core.MethodParameter |
getMethodParameter(Constructor<?> constructor,
int parameterIndex)
获取方法参数信息
|
static org.springframework.core.MethodParameter |
getMethodParameter(Method method,
int parameterIndex)
获取方法参数信息
|
addResourcePathToPackagePath, classNamesToString, classNamesToString, classPackageAsResourcePath, convertClassNameToResourcePath, convertResourcePathToClassName, createCompositeInterface, determineCommonAncestor, forName, getAllInterfaces, getAllInterfacesAsSet, getAllInterfacesForClass, getAllInterfacesForClass, getAllInterfacesForClassAsSet, getAllInterfacesForClassAsSet, getClassFileName, getConstructorIfAvailable, getDefaultClassLoader, getDescriptiveType, getInterfaceMethodIfPossible, getInterfaceMethodIfPossible, getMethod, getMethodCountForName, getMethodIfAvailable, getMostSpecificMethod, getPackageName, getPackageName, getQualifiedMethodName, getQualifiedMethodName, getQualifiedName, getShortName, getShortName, getShortNameAsProperty, getStaticMethod, getUserClass, getUserClass, hasAtLeastOneMethodWithName, hasConstructor, hasMethod, hasMethod, isAssignable, isAssignableValue, isCacheSafe, isCglibProxy, isCglibProxyClass, isCglibProxyClassName, isInnerClass, isJavaLanguageInterface, isLambdaClass, isPresent, isPrimitiveArray, isPrimitiveOrWrapper, isPrimitiveWrapper, isPrimitiveWrapperArray, isUserLevelMethod, isVisible, matchesTypeName, overrideThreadContextClassLoader, resolveClassName, resolvePrimitiveClassName, resolvePrimitiveIfNecessary, toClassArraypublic static <A extends Annotation> A getAnnotation(org.springframework.web.method.HandlerMethod handlerMethod, Class<A> annotationType)
A - 泛型标记handlerMethod - HandlerMethodannotationType - 注解类public static <A extends Annotation> A getAnnotation(Method method, Class<A> annotationType)
A - 泛型标记method - MethodannotationType - 注解类public static org.springframework.core.MethodParameter getMethodParameter(Constructor<?> constructor, int parameterIndex)
constructor - 构造器parameterIndex - 参数序号public static org.springframework.core.MethodParameter getMethodParameter(Method method, int parameterIndex)
method - 方法parameterIndex - 参数序号Copyright © 2025. All rights reserved.