public interface ClassFinder
Modifier and Type | Interface and Description |
---|---|
static class |
ClassFinder.Annotatable |
static class |
ClassFinder.AnnotationInfo |
static class |
ClassFinder.ClassInfo |
static class |
ClassFinder.FieldInfo |
static interface |
ClassFinder.Info |
static class |
ClassFinder.MethodInfo |
static class |
ClassFinder.PackageInfo |
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.
|
ClassLoaderInterface |
getClassLoaderInterface() |
boolean |
isAnnotationPresent(Class<? extends Annotation> annotation) |
boolean isAnnotationPresent(Class<? extends Annotation> annotation)
List<String> getClassesNotLoaded()
Returns a list of classes that could not be loaded in last invoked findAnnotated* method.
The list will only contain entries of classes whose byte code matched the requirements of last invoked find* method, but were unable to be loaded and included in the results.
The list returned is unmodifiable. Once obtained, the returned list will be a live view of the results from the last findAnnotated* method call.
This method is not thread safe.
List<Package> findAnnotatedPackages(Class<? extends Annotation> annotation)
List<Class> findAnnotatedClasses(Class<? extends Annotation> annotation)
List<Method> findAnnotatedMethods(Class<? extends Annotation> annotation)
List<Constructor> findAnnotatedConstructors(Class<? extends Annotation> annotation)
List<Field> findAnnotatedFields(Class<? extends Annotation> annotation)
List<Class> findClasses(Test<ClassFinder.ClassInfo> test)
ClassLoaderInterface getClassLoaderInterface()
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.