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 void
addClassToIndex
(Object anno, Object clazz) Adds a new annotated class entry to the index.protected final void
Writes the current index as a series of tables.protected abstract Reader
Creates a new reader for the given input path.protected abstract Writer
Creates a new writer for the given output path.protected abstract void
Reports an informational message.Reads the given index table from disk to memory.protected abstract void
Reports a warning message.private void
writeTable
(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
-