Class PMDASMClassLoader


  • @InternalApi
    @Deprecated
    public final class PMDASMClassLoader
    extends java.lang.ClassLoader
    Deprecated.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      boolean couldResolve​(java.lang.String name)
      Deprecated.
      Checks if the class loader could resolve a given class name (ie: it doesn't know for sure it will fail).
      java.util.Map<java.lang.String,​java.lang.String> getImportedClasses​(java.lang.String name)
      Deprecated.
       
      static PMDASMClassLoader getInstance​(java.lang.ClassLoader parent)
      Deprecated.
      A new PMDASMClassLoader is created for each compilation unit, this method allows to reuse the same PMDASMClassLoader across all the compilation units.
      java.lang.Class<?> loadClass​(java.lang.String name)
      Deprecated.
       
      • Methods inherited from class java.lang.ClassLoader

        clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findClass, findLibrary, findLoadedClass, findResource, findResource, findResources, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getInstance

        public static PMDASMClassLoader getInstance​(java.lang.ClassLoader parent)
        Deprecated.
        A new PMDASMClassLoader is created for each compilation unit, this method allows to reuse the same PMDASMClassLoader across all the compilation units.
      • loadClass

        public java.lang.Class<?> loadClass​(java.lang.String name)
                                     throws java.lang.ClassNotFoundException
        Deprecated.
        Overrides:
        loadClass in class java.lang.ClassLoader
        Throws:
        java.lang.ClassNotFoundException
      • couldResolve

        public boolean couldResolve​(java.lang.String name)
        Deprecated.
        Checks if the class loader could resolve a given class name (ie: it doesn't know for sure it will fail). Notice, that the ability to resolve a class does not imply that the class will actually be found and resolved.
        Parameters:
        name - the name of the class
        Returns:
        whether the class can be resolved
      • getImportedClasses

        public java.util.Map<java.lang.String,​java.lang.String> getImportedClasses​(java.lang.String name)
                                                                                  throws java.lang.ClassNotFoundException
        Deprecated.
        Throws:
        java.lang.ClassNotFoundException