类 ClassUtil
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>
AgetAnnotation
(Method method, Class<A> annotationType) 获取Annotationstatic <A extends Annotation>
AgetAnnotation
(org.springframework.web.method.HandlerMethod handlerMethod, Class<A> annotationType) 获取Annotationstatic 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
-
构造器详细资料
-
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
获取Annotation- 类型参数:
A
- 泛型标记- 参数:
method
- MethodannotationType
- 注解类- 返回:
- {Annotation}
-
getAnnotation
public static <A extends Annotation> A getAnnotation(org.springframework.web.method.HandlerMethod handlerMethod, Class<A> annotationType) 获取Annotation- 类型参数:
A
- 泛型标记- 参数:
handlerMethod
- HandlerMethodannotationType
- 注解类- 返回:
- {Annotation}
-