net.sourceforge.pmd.lang.java.typeresolution
Class PMDASMClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by net.sourceforge.pmd.lang.java.typeresolution.PMDASMClassLoader

public final class PMDASMClassLoader
extends ClassLoader


Method Summary
 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)
           
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, resolveClass, 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(ClassLoader parent)
A new PMDASMClassLoader is created for each compilation unit, this method allows to reuse the same PMDASMClassLoader across all the compilation units.


loadClass

public Class<?> loadClass(String name)
                   throws ClassNotFoundException
Overrides:
loadClass in class ClassLoader
Throws:
ClassNotFoundException

getImportedClasses

public Map<String,String> getImportedClasses(String name)
                                      throws ClassNotFoundException
Throws:
ClassNotFoundException


Copyright © 2002-2015 InfoEther. All Rights Reserved.