de.lmu.ifi.dbs.elki.utilities
Class InspectionUtil
java.lang.Object
de.lmu.ifi.dbs.elki.utilities.InspectionUtil
public class InspectionUtil
- extends Object
A collection of inspection-related utility functions.
- Author:
- Erich Schubert
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_IGNORES
private static final String[] DEFAULT_IGNORES
- Default package ignores.
InspectionUtil
public InspectionUtil()
findAllImplementations
public static List<Class<?>> findAllImplementations(Class<?> c,
boolean everything)
- Find all implementations of a given class in the classpath.
Note: returned classes may be abstract.
- Parameters:
c
- Class restrictioneverything
- include interfaces, abstract and private classes
- Returns:
- List of found classes.
findAllImplementations
public static List<Class<?>> findAllImplementations(String[] classpath,
Class<?> c,
String[] ignorepackages,
boolean everything)
- Find all implementations of a given class.
- Parameters:
classpath
- Classpath to use (JARs and folders supported)c
- Class restrictionignorepackages
- List of packages to ignoreeverything
- include interfaces, abstract and private classes
- Returns:
- List of found classes.