java.lang.Object
org.springframework.util.ClassUtils
io.github.mangocrisp.spring.taybct.tool.core.util.ClassUtil

public class ClassUtil extends org.springframework.util.ClassUtils
类工具类
从以下版本开始:
1.0.0
  • 字段概要

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

    ARRAY_SUFFIX, CGLIB_CLASS_SEPARATOR, CLASS_FILE_SUFFIX
  • 构造器概要

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

    修饰符和类型
    方法
    说明
    static <A extends Annotation>
    A
    getAnnotation(Method method, Class<A> annotationType)
    获取Annotation
    static <A extends Annotation>
    A
    getAnnotation(org.springframework.web.method.HandlerMethod handlerMethod, Class<A> annotationType)
    获取Annotation
    static org.springframework.core.MethodParameter
    getMethodParameter(Constructor<?> constructor, int parameterIndex)
    获取方法参数信息
    static org.springframework.core.MethodParameter
    getMethodParameter(Method method, int parameterIndex)
    获取方法参数信息

    从类继承的方法 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, 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
  • 构造器详细资料

    • ClassUtil

      public ClassUtil()
  • 方法详细资料

    • getMethodParameter

      public static org.springframework.core.MethodParameter getMethodParameter(Constructor<?> constructor, int parameterIndex)
      获取方法参数信息
      参数:
      constructor - 构造器
      parameterIndex - 参数序号
      返回:
      {MethodParameter}
    • getMethodParameter

      public static org.springframework.core.MethodParameter getMethodParameter(Method method, int parameterIndex)
      获取方法参数信息
      参数:
      method - 方法
      parameterIndex - 参数序号
      返回:
      {MethodParameter}
    • getAnnotation

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

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