abstract class AbstractSisuIndex
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<java.lang.Object,java.util.Set<java.lang.String>> |
index |
(package private) static java.lang.String |
INDEX_FOLDER |
(package private) static java.lang.String |
NAMED |
(package private) static java.lang.String |
QUALIFIER |
| Constructor and Description |
|---|
AbstractSisuIndex() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addClassToIndex(java.lang.Object anno,
java.lang.Object clazz)
Adds a new annotated class entry to the index.
|
protected void |
flushIndex()
Writes the current index as a series of tables.
|
protected abstract java.io.Reader |
getReader(java.lang.String path)
Creates a new reader for the given input path.
|
protected abstract java.io.Writer |
getWriter(java.lang.String path)
Creates a new writer for the given output path.
|
protected abstract void |
info(java.lang.String message)
Reports an informational message.
|
private java.util.Set<java.lang.String> |
readTable(java.lang.Object name)
Reads the given index table from disk to memory.
|
protected abstract void |
warn(java.lang.String message)
Reports a warning message.
|
private void |
writeTable(java.lang.Object name,
java.util.Set<java.lang.String> table)
Writes the given index table from memory to disk.
|
static final java.lang.String INDEX_FOLDER
static final java.lang.String QUALIFIER
static final java.lang.String NAMED
private final java.util.Map<java.lang.Object,java.util.Set<java.lang.String>> index
protected final void addClassToIndex(java.lang.Object anno,
java.lang.Object clazz)
anno - The annotation nameclazz - The class nameprotected final void flushIndex()
protected abstract void info(java.lang.String message)
message - The messageprotected abstract void warn(java.lang.String message)
message - The messageprotected abstract java.io.Reader getReader(java.lang.String path)
throws java.io.IOException
path - The input pathjava.io.IOExceptionprotected abstract java.io.Writer getWriter(java.lang.String path)
throws java.io.IOException
path - The output pathjava.io.IOExceptionprivate java.util.Set<java.lang.String> readTable(java.lang.Object name)
name - The table nameprivate void writeTable(java.lang.Object name,
java.util.Set<java.lang.String> table)
name - The table nametable - The elements