public abstract class ClassUtils extends Object
| 构造器和说明 |
|---|
ClassUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static ClassLoader |
getClassLoader()
Get current thread class loader
|
static Set<Class<?>> |
getClassSet(String packageName,
boolean isRecursion)
Get class set of the package name
|
static Class<?> |
getInterfaceGenericType(Class<?> clazz)
Get the class implements interfaces generic type(first interface and first generic type)
|
static Class<?> |
getInterfaceGenericType(Class<?> clazz,
int interfaceIndex,
int genericTypeIndex)
Get the class generic type
|
static Class<?> |
getSuperClassGenericType(Class<?> clazz)
Get the class extends super class first generic type
|
static Class<?> |
getSuperClassGenericType(Class<?> clazz,
int genericTypeIndex)
Get the class generic type
|
static Class<?> |
loadClass(String className,
boolean isInitialized)
Load class of class name
|
public static ClassLoader getClassLoader()
public static Class<?> loadClass(String className, boolean isInitialized)
className - the class nameisInitialized - is initpublic static Class<?> getSuperClassGenericType(Class<?> clazz)
clazz - the classpublic static Class<?> getSuperClassGenericType(Class<?> clazz, int genericTypeIndex)
clazz - the classgenericTypeIndex - the index of the generic typepublic static Class<?> getInterfaceGenericType(Class<?> clazz)
clazz - the classpublic static Class<?> getInterfaceGenericType(Class<?> clazz, int interfaceIndex, int genericTypeIndex)
clazz - the classinterfaceIndex - the index of implements the interfacegenericTypeIndex - the index of the generic typeCopyright © 2018. All rights reserved.