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.
-
Constructor Details
-
ClassEnumerator
public ClassEnumerator()
-
-
Method Details
-
getClassesForPackage
Return all the classes in this package recursively. The class loader of theClassEnumerator
class 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
-