Class PMDASMClassLoader

    • Method Detail

      • getInstance

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

        public boolean couldResolve​(String name)
        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.
        name - the name of the class
        whether the class can be resolved