public class ClassProbe extends Object
Constructor and Description |
---|
ClassProbe() |
Modifier and Type | Method and Description |
---|---|
static Collection<String> |
findClasses(String targetClassPath,
Predicate<? super String> filter,
String... roots)
Find all recursive static references to classes.
|
static void |
main(String[] args) |
public static Collection<String> findClasses(String targetClassPath, Predicate<? super String> filter, String... roots)
targetClassPath
- the class path to use for loading the
referenced classes, or null
for the system class path.filter
- a predicate to filter the class
references. References to classes that are not accepted by this
predicate are not loaded or traversed. The predicate null
accepts anything.roots
- references to classes to start with.public static void main(String[] args)
see also the complete user documentation .