Package com.foxinmy.weixin4j.util
Class ClassUtil
- java.lang.Object
-
- com.foxinmy.weixin4j.util.ClassUtil
-
public final class ClassUtil extends Object
对class的获取- Since:
- JDK 1.6
- Author:
- jinyu(foxinmy@gmail.com)
-
-
Constructor Summary
Constructors Constructor Description ClassUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Object
deepClone(Object obj)
static List<Class<?>>
getClasses(String packageName)
获取某个包下所有的class信息static ClassLoader
getDefaultClassLoader()
static Class<?>
getGenericType(Class<?> clazz)
获得泛型类型static void
main(String[] args)
-
-
-
Method Detail
-
getClasses
public static List<Class<?>> getClasses(String packageName)
获取某个包下所有的class信息- Parameters:
packageName
- 包名- Returns:
-
getGenericType
public static Class<?> getGenericType(Class<?> clazz)
获得泛型类型- Parameters:
object
-- Returns:
-
getDefaultClassLoader
public static ClassLoader getDefaultClassLoader()
-
main
public static void main(String[] args)
-
-