public final class ClassLocator<T> extends Object
Constructor and Description |
---|
ClassLocator(Class<T> klazz) |
Modifier and Type | Method and Description |
---|---|
List<Class<? extends T>> |
findClasses()
List all the classes inside a package
|
static ClassLocator<Object> |
forAnyClass() |
FileFilter |
getFilenameFilter() |
int |
getLevel() |
String |
getPackage() |
Predicate<Class<? extends T>> |
getPredicate() |
boolean |
isAllowInner() |
ClassLocator<T> |
setAllowInner(boolean allowInner) |
ClassLocator<T> |
setFilenameFilter(FileFilter filenameFilter) |
ClassLocator<T> |
setLevel(int level) |
ClassLocator<T> |
setPackage(String pkg) |
ClassLocator<T> |
setPredicate(Predicate<Class<? extends T>> predicate) |
public static ClassLocator<Object> forAnyClass()
public int getLevel()
public ClassLocator<T> setLevel(int level)
public boolean isAllowInner()
public ClassLocator<T> setAllowInner(boolean allowInner)
public ClassLocator<T> setPredicate(Predicate<Class<? extends T>> predicate)
public FileFilter getFilenameFilter()
public ClassLocator<T> setFilenameFilter(FileFilter filenameFilter)
public ClassLocator<T> setPackage(String pkg)
public String getPackage()
Copyright © 2002-2022 Atlassian. All Rights Reserved.