org.apache.jorphan.reflect
Class ClassFinder
public final class ClassFinder
This class finds classes that extend one of a set of parent classes
static List | findClassesThatExtend(String[] paths, Class[] superClasses)- Convenience method for
findClassesThatExtend(Class[], boolean)
with the option to include inner classes in the search set to false.
|
static List | findClassesThatExtend(String[] strPathsOrJars, Class[] superClasses, boolean innerClasses)- Find classes in the provided path(s)/jar(s) that extend the class(es).
|
static List | 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).
|
findClassesThatExtend
public static List findClassesThatExtend(String[] paths,
Class[] superClasses)
throws IOException Convenience method for
findClassesThatExtend(Class[], boolean)
with the option to include inner classes in the search set to false.
- List containing discovered classes.
findClassesThatExtend
public static List findClassesThatExtend(String[] strPathsOrJars,
Class[] superClasses,
boolean innerClasses)
throws IOException Find classes in the provided path(s)/jar(s) that extend the class(es).
strPathsOrJars - - pathnames or jarfiles to search for classessuperClasses - - required parent class(es)innerClasses - - should we include inner classes?
- List containing discovered classes
findClassesThatExtend
public static List findClassesThatExtend(String[] strPathsOrJars,
Class[] superClasses,
boolean innerClasses,
String contains,
String notContains)
throws IOException Find classes in the provided path(s)/jar(s) that extend the class(es).
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 string
- List containing discovered classes
Copyright © 1998-2010 Apache Software Foundation. All Rights Reserved.