类 ClassUtils
java.lang.Object
org.springframework.util.ClassUtils
com.sie.mbm.mom.framework.common.util.ClassUtils
public class ClassUtils
extends org.springframework.util.ClassUtils
类工具类
-
嵌套类概要
嵌套类 -
字段概要
字段从类继承的字段 org.springframework.util.ClassUtils
ARRAY_SUFFIX, CGLIB_CLASS_SEPARATOR, CLASS_FILE_SUFFIX -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明<A extends Annotation>
AgetAnnotation(Method method, Class<A> annotationType) 获取Annotation<A extends Annotation>
AgetAnnotation(org.springframework.web.method.HandlerMethod handlerMethod, Class<A> annotationType) 获取AnnotationgetColHeadDescriptions(Class<?> clazz) 获取类的key和value 转换成列的属性org.springframework.core.MethodParametergetMethodParameter(Constructor<?> constructor, int parameterIndex) 获取方法参数信息org.springframework.core.MethodParametergetMethodParameter(Method method, int parameterIndex) 获取方法参数信息getPropertyDescriptions(Class<?> clazz) 获取类的key和valueClass<?> resolveFirstGenericType(Object handler, Class clazz) 解析具体实现TaskHandlerInterface接口的类 例如 A extents TaskHandlerInterface 获取类型B从类继承的方法 org.springframework.util.ClassUtils
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, getPubliclyAccessibleMethodIfPossible, 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, isSimpleValueType, isStaticClass, isUserLevelMethod, isVisible, isVoidType, matchesTypeName, overrideThreadContextClassLoader, resolveClassName, resolvePrimitiveClassName, resolvePrimitiveIfNecessary, toClassArray
-
字段详细资料
-
PARAMETERNAMEDISCOVERER
private final org.springframework.core.ParameterNameDiscoverer PARAMETERNAMEDISCOVERER
-
-
构造器详细资料
-
ClassUtils
public ClassUtils()
-
-
方法详细资料
-
getMethodParameter
public org.springframework.core.MethodParameter getMethodParameter(Constructor<?> constructor, int parameterIndex) 获取方法参数信息- 参数:
constructor- 构造器parameterIndex- 参数序号- 返回:
- {MethodParameter}
-
getMethodParameter
public org.springframework.core.MethodParameter getMethodParameter(Method method, int parameterIndex) 获取方法参数信息- 参数:
method- 方法parameterIndex- 参数序号- 返回:
- {MethodParameter}
-
getAnnotation
获取Annotation- 类型参数:
A- 泛型标记- 参数:
method- MethodannotationType- 注解类- 返回:
- {Annotation}
-
getAnnotation
public <A extends Annotation> A getAnnotation(org.springframework.web.method.HandlerMethod handlerMethod, Class<A> annotationType) 获取Annotation- 类型参数:
A- 泛型标记- 参数:
handlerMethod- HandlerMethodannotationType- 注解类- 返回:
- {Annotation}
-
getPropertyDescriptions
获取类的key和value- 参数:
clazz-- 返回:
-
getColHeadDescriptions
获取类的key和value 转换成列的属性- 参数:
clazz-- 返回:
-
resolveFirstGenericType
解析具体实现TaskHandlerInterface接口的类 例如 A extents TaskHandlerInterface 获取类型B- 参数:
handler-- 返回:
-