Class Debug


  • public class Debug
    extends Object
    Class containing debugging utility methods
    Author:
    gavinc
    • Constructor Detail

      • Debug

        public Debug()
    • Method Detail

      • whichClass

        public static String whichClass​(String className)
                                 throws ClassNotFoundException
        Returns the location of the file that will be loaded for the given class name
        Parameters:
        className - The class to load
        Returns:
        The location of the file that will be loaded
        Throws:
        ClassNotFoundException
      • whichClassLoader

        public static String whichClassLoader​(String className)
                                       throws ClassNotFoundException
        Returns the class loader that will load the given class name
        Parameters:
        className - The class to load
        Returns:
        The class loader the class will be loaded in
        Throws:
        ClassNotFoundException
      • whichClassLoaderHierarchy

        public static String whichClassLoaderHierarchy​(String className)
                                                throws ClassNotFoundException
        Returns the class loader hierarchy that will load the given class name
        Parameters:
        className - The class to load
        Returns:
        The hierarchy of class loaders used to load the class
        Throws:
        ClassNotFoundException