
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 WeakHashMap<Class<?>,List<Class<?>>> |
CLASS_CACHE
Weak hash map for class lookups
|
private static String[] |
DEFAULT_IGNORES
Default package ignores.
|
private static Logging |
logger
Class logger
|
private static List<Class<?>> |
MASTER_CACHE
(Non-weak) cache for all "frequently scanned" classes.
|
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.
|
private static Iterator<Class<?>> |
getFrequentScan()
Get (or create) the result of a scan for any "frequent scanned" class.
|
private static List<Class<?>> |
slowScan(Class<?> cond)
Perform a full (slow) scan for classes.
|
private static final Logging logger
private static final String[] DEFAULT_IGNORES
public static final boolean NONSTATIC_CLASSPATH
private static WeakHashMap<Class<?>,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 classesprivate static Iterator<Class<?>> getFrequentScan()