
public class InspectionUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
InspectionUtil.ClassSorter
Sort classes by their class name.
|
(package private) static class |
InspectionUtil.DirClassIterator
Class to iterate over a directory tree.
|
(package private) static class |
InspectionUtil.JarClassIterator
Class to iterate over a Jar file.
|
| Modifier and Type | Field and Description |
|---|---|
private static WeakReference<List<Class<?>>> |
CLASS_CACHE |
private static String[] |
DEFAULT_IGNORES
Default package ignores.
|
static boolean |
NONSTATIC_CLASSPATH
If we have a non-static classpath, we do more extensive scanning for user
extensions.
|
| Constructor and Description |
|---|
InspectionUtil() |
| Modifier and Type | Method and Description |
|---|---|
static List<Class<?>> |
cachedFindAllImplementations(Class<?> c)
Cached version of "findAllImplementations".
|
static List<Class<?>> |
findAllImplementations(Class<?> c,
boolean everything)
Find all implementations of a given class in the classpath.
|
static List<Class<?>> |
findAllImplementations(String[] classpath,
Class<?> c,
String[] ignorepackages,
boolean everything)
Find all implementations of a given class.
|
private static final String[] DEFAULT_IGNORES
public static final boolean NONSTATIC_CLASSPATH
private static WeakReference<List<Class<?>>> CLASS_CACHE
public static List<Class<?>> cachedFindAllImplementations(Class<?> c)
c - Class to scan forpublic static List<Class<?>> findAllImplementations(Class<?> c, boolean everything)
c - Class restrictioneverything - include interfaces, abstract and private classespublic static List<Class<?>> findAllImplementations(String[] classpath, Class<?> c, String[] ignorepackages, boolean everything)
classpath - Classpath to use (JARs and folders supported)c - Class restrictionignorepackages - List of packages to ignoreeverything - include interfaces, abstract and private classes