public final class ClassFinder extends Object
Modifier and Type | Method and Description |
---|---|
static List<String> |
findSubTypes(Class<?> superClass)
Finds the names of all subtypes of the super class,
scanning the roots of this class classpath.
|
static List<String> |
findSubTypes(File file,
Class<?> superClass)
Finds the names of all subtypes of the super class for the
supplied
File . |
static List<String> |
findSubTypes(List<File> files,
Class<?> superClass)
Finds the names of all subtypes of the super class in list
of
File supplied. |
public static List<String> findSubTypes(Class<?> superClass)
superClass
- the class from which to find subtypespublic static List<String> findSubTypes(List<File> files, Class<?> superClass)
File
supplied.
This method is null-safe. If no classes are found,
an empty list will be returned.files
- directories and/or JARs to scan for classessuperClass
- the class from which to find subtypespublic static List<String> findSubTypes(File file, Class<?> superClass)
File
.
This method is null-safe. If no classes are found,
an empty list will be returned.
If the file is null or does not exists, or if it is not a JAR or
directory, an empty string list will be returned.file
- directory or JAR to scan for classessuperClass
- the class from which to find subtypesCopyright © 2008–2021 Norconex Inc.. All rights reserved.