|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.util.classpath.ClasspathClasses
public class ClasspathClasses
Classes on the classpath and the JARs that contain them.
Constructor Summary | |
---|---|
ClasspathClasses()
|
Method Summary | |
---|---|
void |
add(java.net.URL jarUrl,
java.lang.String classFileName)
Associates a class with a JAR. |
void |
addAll(java.net.URL jarUrl,
java.util.Collection<java.lang.String> classFileNames)
Associates all the given classes with a JAR. |
JarSet |
getJarsForClass(java.lang.String classFileName)
Returns a set of JAR URLs which contain a given class. |
java.util.SortedMap<java.lang.String,java.util.Set<java.net.URL>> |
getJarUrlsByClass()
|
java.util.Iterator<java.lang.String> |
iterator()
Returns an iterator over the class files on the classpath. |
int |
size()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClasspathClasses()
Method Detail |
---|
public void add(java.net.URL jarUrl, java.lang.String classFileName)
jarUrl
- the URL of a JAR on the classpathclassFileName
- the name of a class file in the JAR, in the form "java/lang/String.class"public void addAll(java.net.URL jarUrl, java.util.Collection<java.lang.String> classFileNames)
jarUrl
- the URL of a JAR on the classpathclassFileNames
- the class file names in the JAR, in the form "java/lang/String.class"public java.util.Iterator<java.lang.String> iterator()
iterator
in interface java.lang.Iterable<java.lang.String>
public int size()
public JarSet getJarsForClass(java.lang.String classFileName)
classFileName
- the name of the class file, in the form "java/lang/String.class".
public java.util.SortedMap<java.lang.String,java.util.Set<java.net.URL>> getJarUrlsByClass()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |