Class ClassUtils

java.lang.Object
org.apache.dubbo.metadata.definition.util.ClassUtils

public final class ClassUtils extends Object
2015/1/27.
  • Method Details

    • getCodeSource

      public static String getCodeSource(Class<?> clazz)
      Get the code source file or class path of the Class passed in.
      Parameters:
      clazz -
      Returns:
      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.

      Parameters:
      clazz - Class to parse.
      Returns:
      field list
    • getPublicNonStaticMethods

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

      Parameters:
      clazz - Class to parse.
      Returns:
      methods list
    • getCanonicalNameForParameterizedType

      public static String getCanonicalNameForParameterizedType(ParameterizedType parameterizedType)