类 ClassUtils


  • public final class ClassUtils
    extends Object
    2015/1/27.
    • 方法详细资料

      • getCodeSource

        public static String getCodeSource​(Class<?> clazz)
        Get the code source file or class path of the Class passed in.
        参数:
        clazz -
        返回:
        Jar file name or class path.
      • getNonStaticFields

        public static List<Field> getNonStaticFields​(Class<?> clazz)
        Get all non-static fields of the Class passed in or its super classes.

        参数:
        clazz - Class to parse.
        返回:
        field list
      • getPublicNonStaticMethods

        public static List<Method> getPublicNonStaticMethods​(Class<?> clazz)
        Get all public, non-static methods of the Class passed in.

        参数:
        clazz - Class to parse.
        返回:
        methods list