Class ClassUtil


  • public final class ClassUtil
    extends Object
    对class的获取
    Since:
    JDK 1.6
    Author:
    jinyu(foxinmy@gmail.com)
    • Constructor Detail

      • ClassUtil

        public ClassUtil()
    • Method Detail

      • getClasses

        public static List<Class<?>> getClasses​(String packageName)
        获取某个包下所有的class信息
        Parameters:
        packageName - 包名
        Returns:
      • deepClone

        public static Object deepClone​(Object obj)
      • getGenericType

        public static Class<?> getGenericType​(Class<?> clazz)
        获得泛型类型
        Parameters:
        object -
        Returns:
      • getDefaultClassLoader

        public static ClassLoader getDefaultClassLoader()
      • main

        public static void main​(String[] args)