public class ClassFinder extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ClassFinder.And |
static interface |
ClassFinder.ClassFilter |
static interface |
ClassFinder.FileNameFilter |
static class |
ClassFinder.Not |
static interface |
ClassFinder.ResourcePathFilter |
| Constructor and Description |
|---|
ClassFinder() |
ClassFinder(ClassFinder.ResourcePathFilter resourcePathFilter,
ClassFinder.FileNameFilter fileNameFilter,
ClassFinder.ClassFilter classFilter) |
| Modifier and Type | Method and Description |
|---|---|
Set<Class<?>> |
findClasses(boolean proceedOnExceptions)
Finds the classes in current package (of ClassFinder) and nested packages.
|
Set<Class<?>> |
findClasses(String packageName,
boolean proceedOnExceptions)
Finds the classes in a package and nested packages.
|
public ClassFinder()
public ClassFinder(ClassFinder.ResourcePathFilter resourcePathFilter, ClassFinder.FileNameFilter fileNameFilter, ClassFinder.ClassFilter classFilter)
public Set<Class<?>> findClasses(boolean proceedOnExceptions) throws ClassNotFoundException, IOException, LinkageError
proceedOnExceptions - whether to ignore exceptions encountered for
individual jars/files/classes, and proceed looking for others.ClassNotFoundExceptionIOExceptionLinkageErrorpublic Set<Class<?>> findClasses(String packageName, boolean proceedOnExceptions) throws ClassNotFoundException, IOException, LinkageError
packageName - package namesproceedOnExceptions - whether to ignore exceptions encountered for
individual jars/files/classes, and proceed looking for others.ClassNotFoundExceptionIOExceptionLinkageError