类 ClassUtils
- java.lang.Object
-
- org.apache.dubbo.metadata.definition.util.ClassUtils
-
public final class ClassUtils extends Object
2015/1/27.
-
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static StringgetCodeSource(Class<?> clazz)Get the code source file or class path of the Class passed in.static List<Field>getNonStaticFields(Class<?> clazz)Get all non-static fields of the Class passed in or its super classes.static List<Method>getPublicNonStaticMethods(Class<?> clazz)Get all public, non-static methods of the Class passed in.
-
-
-
方法详细资料
-
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
-
-