|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.scijava.annotations.Index<A>
public class Index<A extends Annotation>
Makes the annotation indexes accessible.
You would call it like this:
for (IndexItem
// do something with item.annotation() and/or item.className()
}
| Method Summary | ||
|---|---|---|
Iterator<IndexItem<A>> |
iterator()
|
|
static
|
load(Class<A> annotation)
Loads the index of all classes annotated with the specified annotation. |
|
static
|
load(Class<A> annotation,
ClassLoader loader)
Loads the index of all classes annotated with the specified annotation. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <A extends Annotation> Index<A> load(Class<A> annotation)
The specified annotation needs to be annotated with Indexable for
the annotation indexing to work properly, of course.
annotation - the annotation type
public static <A extends Annotation> Index<A> load(Class<A> annotation,
ClassLoader loader)
annotation - the annotation typeloader - the class loader to use when loading Class-type
annotation fields
public Iterator<IndexItem<A>> iterator()
iterator in interface Iterable<IndexItem<A extends Annotation>>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||