public final class ClassFinder extends Object
| Modifier and Type | Method | Description |
|---|---|---|
static List<String> |
findAnnotatedClasses(String[] strPathsOrJars,
Class<? extends Annotation>[] annotations) |
Find classes in the provided path(s)/jar(s) that extend the class(es).
|
static List<String> |
findAnnotatedClasses(String[] strPathsOrJars,
Class<? extends Annotation>[] annotations,
boolean innerClasses) |
Find classes in the provided path(s)/jar(s) that extend the class(es).
|
static List<String> |
findClassesThatExtend(String[] paths,
Class<?>[] superClasses) |
Convenience method for
findClassesThatExtend(String[], Class[], boolean) with the
option to include inner classes in the search set to false. |
static List<String> |
findClassesThatExtend(String[] strPathsOrJars,
Class<?>[] superClasses,
boolean innerClasses) |
Find classes in the provided path(s)/jar(s) that extend the class(es).
|
static List<String> |
findClassesThatExtend(String[] strPathsOrJars,
Class<?>[] superClasses,
boolean innerClasses,
String contains,
String notContains) |
Find classes in the provided path(s)/jar(s) that extend the class(es).
|
static List<String> |
findClassesThatExtend(String[] searchPathsOrJars,
Class<?>[] classNames,
boolean innerClasses,
String contains,
String notContains,
boolean annotations) |
Find classes in the provided path(s)/jar(s) that extend the class(es).
|
public static List<String> findClassesThatExtend(String[] paths, Class<?>[] superClasses) throws IOException
findClassesThatExtend(String[], Class[], boolean) with the
option to include inner classes in the search set to false.paths - pathnames or jarfiles to search for classessuperClasses - required parent class(es)IOException - when scanning the classes failspublic static List<String> findClassesThatExtend(String[] strPathsOrJars, Class<?>[] superClasses, boolean innerClasses) throws IOException
strPathsOrJars - - pathnames or jarfiles to search for classessuperClasses - - required parent class(es)innerClasses - - should we include inner classes?IOException - when scanning for classes failspublic static List<String> findClassesThatExtend(String[] strPathsOrJars, Class<?>[] superClasses, boolean innerClasses, String contains, String notContains) throws IOException
strPathsOrJars - - pathnames or jarfiles to search for classessuperClasses - - required parent class(es)innerClasses - - should we include inner classes?contains - - classname should contain this stringnotContains - - classname should not contain this stringIOException - when scanning classes failspublic static List<String> findAnnotatedClasses(String[] strPathsOrJars, Class<? extends Annotation>[] annotations, boolean innerClasses) throws IOException
strPathsOrJars - - pathnames or jarfiles to search for classesannotations - - required annotationsinnerClasses - - should we include inner classes?IOException - when scanning classes failspublic static List<String> findAnnotatedClasses(String[] strPathsOrJars, Class<? extends Annotation>[] annotations) throws IOException
strPathsOrJars - - pathnames or jarfiles to search for classesannotations - - required annotationsIOException - when scanning classes failspublic static List<String> findClassesThatExtend(String[] searchPathsOrJars, Class<?>[] classNames, boolean innerClasses, String contains, String notContains, boolean annotations) throws IOException
searchPathsOrJars - - pathnames or jarfiles to search for classesclassNames - - required parent class(es) or annotationsinnerClasses - - should we include inner classes?contains - - classname should contain this stringnotContains - - classname should not contain this stringannotations - - true if classnames are annotationsIOException - when scanning classes failsCopyright © 1998-2018 Apache Software Foundation. All Rights Reserved.