public class ClassFinder extends Object
Modifier and Type | Class and Description |
---|---|
class |
ClassFinder.Annotatable |
class |
ClassFinder.AnnotationInfo |
class |
ClassFinder.ClassInfo |
class |
ClassFinder.FieldInfo |
static interface |
ClassFinder.Info |
class |
ClassFinder.InfoBuildingVisitor |
class |
ClassFinder.MethodInfo |
class |
ClassFinder.PackageInfo |
Constructor and Description |
---|
ClassFinder(Class... classes) |
ClassFinder(ClassLoaderInterface classLoaderInterface,
Collection<URL> urls,
boolean extractBaseInterfaces,
Set<String> protocols,
Test<String> classNameFilter) |
ClassFinder(List<Class> classes) |
Modifier and Type | Method and Description |
---|---|
List<Class> |
findAnnotatedClasses(Class<? extends Annotation> annotation) |
List<Constructor> |
findAnnotatedConstructors(Class<? extends Annotation> annotation) |
List<Field> |
findAnnotatedFields(Class<? extends Annotation> annotation) |
List<Method> |
findAnnotatedMethods(Class<? extends Annotation> annotation) |
List<Package> |
findAnnotatedPackages(Class<? extends Annotation> annotation) |
List<Class> |
findClasses() |
List<Class> |
findClasses(Test<ClassFinder.ClassInfo> test) |
List<Class> |
findClassesInPackage(String packageName,
boolean recursive) |
List<String> |
getClassesNotLoaded()
Returns a list of classes that could not be loaded in last invoked findAnnotated* method.
|
boolean |
isAnnotationPresent(Class<? extends Annotation> annotation) |
public ClassFinder(ClassLoaderInterface classLoaderInterface, Collection<URL> urls, boolean extractBaseInterfaces, Set<String> protocols, Test<String> classNameFilter)
public ClassFinder(Class... classes)
public boolean isAnnotationPresent(Class<? extends Annotation> annotation)
public List<String> getClassesNotLoaded()
public List<Package> findAnnotatedPackages(Class<? extends Annotation> annotation)
public List<Class> findAnnotatedClasses(Class<? extends Annotation> annotation)
public List<Method> findAnnotatedMethods(Class<? extends Annotation> annotation)
public List<Constructor> findAnnotatedConstructors(Class<? extends Annotation> annotation)
public List<Field> findAnnotatedFields(Class<? extends Annotation> annotation)
public List<Class> findClasses(Test<ClassFinder.ClassInfo> test)
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.