Class ClassUtils
java.lang.Object
org.apache.dubbo.metadata.definition.util.ClassUtils
2015/1/27.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetCanonicalNameForParameterizedType(ParameterizedType parameterizedType) static StringgetCodeSource(Class<?> clazz) Get the code source file or class path of the Class passed in.getNonStaticFields(Class<?> clazz) Get all non-static fields of the Class passed in or its super classes.getPublicNonStaticMethods(Class<?> clazz) Get all public, non-static methods of the Class passed in.
-
Method Details
-
getCodeSource
Get the code source file or class path of the Class passed in.- Parameters:
clazz-- Returns:
- Jar file name or class path.
-
getNonStaticFields
Get all non-static fields of the Class passed in or its super classes.- Parameters:
clazz- Class to parse.- Returns:
- field list
-
getPublicNonStaticMethods
Get all public, non-static methods of the Class passed in.- Parameters:
clazz- Class to parse.- Returns:
- methods list
-
getCanonicalNameForParameterizedType
-