public class Index extends Object
| Modifier and Type | Method and Description |
|---|---|
static Iterable<AnnotatedElement> |
list(Class<? extends Annotation> type,
ClassLoader cl)
Lists up all the elements annotated by the given annotation.
|
static <T extends AnnotatedElement> |
list(Class<? extends Annotation> type,
ClassLoader cl,
Class<T> subType)
Lists up all the elements annotated by the given annotation and of the given
AnnotatedElement subtype. |
static Set<String> |
listClassNames(Class<? extends Annotation> type,
ClassLoader cl)
Lists the names of classes annotated by the given annotation.
|
public static <T extends AnnotatedElement> Iterable<T> list(Class<? extends Annotation> type, ClassLoader cl, Class<T> subType) throws IOException
AnnotatedElement subtype.IOExceptionpublic static Set<String> listClassNames(Class<? extends Annotation> type, ClassLoader cl) throws IOException
list(Class, ClassLoader, Class) instead,
but this lower-level method can be used for clients doing bytecode inspection or manipulation rather than class loading.IOExceptionpublic static Iterable<AnnotatedElement> list(Class<? extends Annotation> type, ClassLoader cl) throws IOException
IOExceptionCopyright © 2004–2021. All rights reserved.