Package org.eclipse.sisu.space
Class AbstractSisuIndex
java.lang.Object
org.eclipse.sisu.space.AbstractSisuIndex
- Direct Known Subclasses:
SisuIndex,SisuIndexAPT6
Skeleton class that generates a qualified class index.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidaddClassToIndex(Object anno, Object clazz) Adds a new annotated class entry to the index.protected final voidWrites the current index as a series of tables.protected abstract ReaderCreates a new reader for the given input path.protected abstract WriterCreates a new writer for the given output path.protected abstract voidReports an informational message.Reads the given index table from disk to memory.protected abstract voidReports a warning message.private voidwriteTable(Object name, Set<String> table) Writes the given index table from memory to disk.
-
Field Details
-
INDEX_FOLDER
- See Also:
-
QUALIFIER
- See Also:
-
NAMED
- See Also:
-
index
-
-
Constructor Details
-
AbstractSisuIndex
AbstractSisuIndex()
-
-
Method Details
-
addClassToIndex
Adds a new annotated class entry to the index.- Parameters:
anno- The annotation nameclazz- The class name
-
flushIndex
protected final void flushIndex()Writes the current index as a series of tables. -
info
Reports an informational message.- Parameters:
message- The message
-
warn
Reports a warning message.- Parameters:
message- The message
-
getReader
Creates a new reader for the given input path.- Parameters:
path- The input path- Returns:
- The relevant reader
- Throws:
IOException
-
getWriter
Creates a new writer for the given output path.- Parameters:
path- The output path- Returns:
- The relevant writer
- Throws:
IOException
-
readTable
Reads the given index table from disk to memory.- Parameters:
name- The table name- Returns:
- Table elements
-
writeTable
Writes the given index table from memory to disk.- Parameters:
name- The table nametable- The elements
-