|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.confluence.util.classpath.ClasspathJarSets
public class ClasspathJarSets
Contains a set of JAR files for each class on the classpath: the set of JARs that contain the class.
Ideally, a set of JARs for a given class should only include one JAR; if the set of JARs for a given class includes more than one JAR, the class is duplicated in several JARs in the classpath.
Constructor Summary | |
---|---|
ClasspathJarSets()
|
|
ClasspathJarSets(ClasspathClasses classpathClasses)
|
|
ClasspathJarSets(ClasspathClasses classpathClasses,
org.apache.commons.collections.Predicate classFileNamePredicate)
|
Method Summary | |
---|---|
void |
addClass(java.lang.String classFileName,
JarSet jars)
|
java.util.SortedSet |
getClassFileNames(JarSet jars)
Returns the class files in a given set of JARs, which may be one or more JARs. |
java.util.Set |
getJarSetsWithCommonClasses()
|
java.util.SortedSet |
getPackageNames(JarSet jars)
Returns the packages in a given set of JARs, which may be one or more JARs. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClasspathJarSets()
public ClasspathJarSets(ClasspathClasses classpathClasses)
public ClasspathJarSets(ClasspathClasses classpathClasses, org.apache.commons.collections.Predicate classFileNamePredicate)
Method Detail |
---|
public void addClass(java.lang.String classFileName, JarSet jars)
public java.util.Set getJarSetsWithCommonClasses()
getJarSetsWithCommonClasses
in interface DuplicateClassFinder
public java.util.SortedSet getClassFileNames(JarSet jars)
The set is sorted by the natural order of the contents: the String class file names.
getClassFileNames
in interface DuplicateClassFinder
jars
- a set of one or more JARs on the classpath
public java.util.SortedSet getPackageNames(JarSet jars)
The set is sorted by the natural order of the contents: the String package names.
getPackageNames
in interface DuplicateClassFinder
jars
- a set of one or more JARs on the classpath
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |