Constructor and Description |
---|
ClasspathClasses() |
Modifier and Type | Method and Description |
---|---|
void |
add(URL jarUrl,
String classFileName)
Associates a class with a JAR.
|
void |
addAll(URL jarUrl,
Collection<String> classFileNames)
Associates all the given classes with a JAR.
|
JarSet |
getJarsForClass(String classFileName)
Returns a set of JAR URLs which contain a given class.
|
SortedMap<String,Set<URL>> |
getJarUrlsByClass() |
Iterator<String> |
iterator()
Returns an iterator over the class files on the classpath.
|
int |
size() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public void add(URL jarUrl, 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(URL jarUrl, Collection<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 Iterator<String> iterator()
public int size()
public JarSet getJarsForClass(String classFileName)
classFileName
- the name of the class file, in the form "java/lang/String.class".Copyright © 2003–2015 Atlassian. All rights reserved.