类 ClassUtils

java.lang.Object
org.springframework.util.ClassUtils
com.sie.mbm.mom.framework.common.util.ClassUtils

public class ClassUtils extends org.springframework.util.ClassUtils
类工具类
  • 嵌套类概要

    嵌套类
    修饰符和类型
    说明
    static class 
     
    static class 
     
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    private final org.springframework.core.ParameterNameDiscoverer
     

    从类继承的字段 org.springframework.util.ClassUtils

    ARRAY_SUFFIX, CGLIB_CLASS_SEPARATOR, CLASS_FILE_SUFFIX
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    <A extends Annotation>
    A
    getAnnotation(Method method, Class<A> annotationType)
    获取Annotation
    <A extends Annotation>
    A
    getAnnotation(org.springframework.web.method.HandlerMethod handlerMethod, Class<A> annotationType)
    获取Annotation
    获取类的key和value 转换成列的属性
    org.springframework.core.MethodParameter
    getMethodParameter(Constructor<?> constructor, int parameterIndex)
    获取方法参数信息
    org.springframework.core.MethodParameter
    getMethodParameter(Method method, int parameterIndex)
    获取方法参数信息
    获取类的key和value
    解析具体实现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

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

    • 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

      public <A extends Annotation> A getAnnotation(Method method, Class<A> annotationType)
      获取Annotation
      类型参数:
      A - 泛型标记
      参数:
      method - Method
      annotationType - 注解类
      返回:
      {Annotation}
    • getAnnotation

      public <A extends Annotation> A getAnnotation(org.springframework.web.method.HandlerMethod handlerMethod, Class<A> annotationType)
      获取Annotation
      类型参数:
      A - 泛型标记
      参数:
      handlerMethod - HandlerMethod
      annotationType - 注解类
      返回:
      {Annotation}
    • getPropertyDescriptions

      public List<ClassUtils.PropertyDescription> getPropertyDescriptions(Class<?> clazz)
      获取类的key和value
      参数:
      clazz -
      返回:
    • getColHeadDescriptions

      public List<ClassUtils.ColHeadDescription> getColHeadDescriptions(Class<?> clazz)
      获取类的key和value 转换成列的属性
      参数:
      clazz -
      返回:
    • resolveFirstGenericType

      public Class<?> resolveFirstGenericType(Object handler, Class clazz)
      解析具体实现TaskHandlerInterface接口的类 例如 A extents TaskHandlerInterface 获取类型B
      参数:
      handler -
      返回: