public class ClassCollector extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
ClassCollector.Selector
Deprecated.
Use
Predicate instead |
| Constructor and Description |
|---|
ClassCollector(ClassLoader classLoader)
Creates a new instance with a filter which accepts any classes.
|
ClassCollector(ClassLoader classLoader,
Predicate<? super Class<?>> selector)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
findClass(String name)
Returns a class which
collected by this. |
Collection<Class<?>> |
getClasses()
Returns the collected classes.
|
void |
inspect(File classPath)
Inspects class-path and collect classes in the target path.
|
public ClassCollector(ClassLoader classLoader)
classLoader - the project class loaderpublic ClassCollector(ClassLoader classLoader, Predicate<? super Class<?>> selector)
classLoader - the project class loaderselector - the class selectorpublic void inspect(File classPath)
classPath - target class file or directorypublic Collection<Class<?>> getClasses()
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.