org.tinyjee.maven.dim.utils
Class JavaClassLoader
java.lang.Object
org.tinyjee.maven.dim.utils.JavaClassLoader
public class JavaClassLoader
- extends Object
Is a singleton that loads java classes at source level using qdox.
- Author:
- Juergen_Kellerer, 2011-10-11
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static JavaClassLoader getInstance()
addSource
public JavaSource addSource(File basePath,
String pathOrUrl)
throws IOException
- Throws:
IOException
addSource
public JavaSource addSource(File basePath,
String pathOrUrl,
boolean doNotLoadSourceTree)
throws IOException
- Throws:
IOException
addSource
public JavaSource addSource(URL sourceUrl,
Reader sourceContent)
addSource
public JavaSource addSource(URL sourceUrl,
boolean doNotLoadSourceTree)
throws IOException
- Throws:
IOException
addSourceTree
public void addSourceTree(File sourceFolder)
getSource
public JavaSource getSource(URL sourceUrl)
getSources
public JavaSource[] getSources()
getClasses
public SortedSet<JavaClass> getClasses()
getPackages
public SortedSet<JavaPackage> getPackages()
clear
public void clear()