Package org.objenesis.tck.search
Class ClassEnumerator
java.lang.Object
org.objenesis.tck.search.ClassEnumerator
Taken and adapted from here
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn all the classes in this package recursively.getClassesForPackage(Package pkg, ClassLoader classLoader) Return all the classes in this package recursively.private static voidprocessDirectory(File directory, String pkgname, SortedSet<String> classes) private static voidprocessJarfile(URL resource, String pkgname, SortedSet<String> classes)
-
Constructor Details
-
ClassEnumerator
public ClassEnumerator()
-
-
Method Details
-
processDirectory
-
processJarfile
-
getClassesForPackage
Return all the classes in this package recursively. The class loader of theClassEnumeratorclass is used- Parameters:
pkg- the searched package- Returns:
- list of full class names
-
getClassesForPackage
Return all the classes in this package recursively.- Parameters:
pkg- the searched packageclassLoader- class loader where to look for classes- Returns:
- list of full class names
-