public class ClassUtils
extends org.springframework.util.ClassUtils
| 构造器和说明 |
|---|
ClassUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
<A extends Annotation> |
getAnnotation(org.springframework.web.method.HandlerMethod handlerMethod,
Class<A> annotationType)
获取Annotation
|
<A extends Annotation> |
getAnnotation(Method method,
Class<A> annotationType)
获取Annotation
|
org.springframework.core.MethodParameter |
getMethodParameter(Constructor<?> constructor,
int parameterIndex)
获取方法参数信息
|
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, 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, isPresent, isPrimitiveArray, isPrimitiveOrWrapper, isPrimitiveWrapper, isPrimitiveWrapperArray, isUserLevelMethod, isVisible, matchesTypeName, overrideThreadContextClassLoader, resolveClassName, resolvePrimitiveClassName, resolvePrimitiveIfNecessary, toClassArraypublic org.springframework.core.MethodParameter getMethodParameter(Constructor<?> constructor, int parameterIndex)
constructor - 构造器parameterIndex - 参数序号public org.springframework.core.MethodParameter getMethodParameter(Method method, int parameterIndex)
method - 方法parameterIndex - 参数序号public <A extends Annotation> A getAnnotation(Method method, Class<A> annotationType)
A - 泛型标记method - MethodannotationType - 注解类public <A extends Annotation> A getAnnotation(org.springframework.web.method.HandlerMethod handlerMethod, Class<A> annotationType)
A - 泛型标记handlerMethod - HandlerMethodannotationType - 注解类Copyright © 2022 Pivotal Software, Inc.. All rights reserved.