public final class SisuIndex extends Object implements QualifiedTypeListener
| Modifier and Type | Method and Description |
|---|---|
protected void |
addClassToIndex(Object anno,
Object clazz)
Adds a new annotated class entry to the index.
|
protected void |
flushIndex()
Writes the current index as a series of tables.
|
protected Reader |
getReader(String path)
Creates a new reader for the given input path.
|
protected Writer |
getWriter(String path)
Creates a new writer for the given output path.
|
void |
hear(Class<?> qualifiedType,
Object source)
Invoked when the
QualifiedTypeVisitor finds a qualified type. |
void |
index(ClassSpace space) |
protected void |
info(String message)
Reports an informational message.
|
static void |
main(String[] args) |
protected void |
warn(String message)
Reports a warning message.
|
public SisuIndex(File targetDirectory)
public static void main(String[] args)
public void index(ClassSpace space)
public void hear(Class<?> qualifiedType, Object source)
QualifiedTypeListenerQualifiedTypeVisitor finds a qualified type.hear in interface QualifiedTypeListenerqualifiedType - The qualified typesource - The source of this typeBinder.withSource(Object)protected void info(String message)
message - The messageprotected void warn(String message)
message - The messageprotected Reader getReader(String path) throws IOException
path - The input pathIOExceptionprotected Writer getWriter(String path) throws IOException
path - The output pathIOExceptionprotected final void addClassToIndex(Object anno, Object clazz)
anno - The annotation nameclazz - The class nameprotected final void flushIndex()
Copyright © 2013. All rights reserved.