public final class PMDASMClassLoader extends ClassLoader
| Modifier and Type | Method and Description |
|---|---|
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).
|
Map<String,String> |
getImportedClasses(String name) |
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.
|
Class<?> |
loadClass(String name) |
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignerspublic static PMDASMClassLoader getInstance(ClassLoader parent)
public Class<?> loadClass(String name) throws ClassNotFoundException
loadClass in class ClassLoaderClassNotFoundExceptionpublic boolean couldResolve(String name)
name - the name of the classpublic Map<String,String> getImportedClasses(String name) throws ClassNotFoundException
ClassNotFoundExceptionCopyright © 2002–2017 PMD. All rights reserved.