org.scijava.annotations
Class DirectoryIndexer
java.lang.Object
org.scijava.annotations.AbstractIndexWriter
org.scijava.annotations.DirectoryIndexer
- Direct Known Subclasses:
- EclipseHelper
public class DirectoryIndexer
- extends AbstractIndexWriter
Indexes a directory of classes.
The assumption is that the classes are tested at some stage before packaging.
That will be the time when we can index the annotations, even if Eclipse
decided not to run any annotation processor.
- Author:
- Johannes Schindelin
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirectoryIndexer
public DirectoryIndexer()
index
public void index(File directory)
throws IOException
- Throws:
IOException
discoverAnnotations
protected void discoverAnnotations(File directory,
String classNamePrefix,
ClassLoader loader)
throws IOException
- Throws:
IOException
add
protected <A extends Annotation> void add(A annotation,
String className)
write
protected void write(File directory)
throws IOException
- Throws:
IOException
Copyright © 2009–2014 SciJava. All rights reserved.