Class AbstractSisuIndex

java.lang.Object
org.eclipse.sisu.space.AbstractSisuIndex
Direct Known Subclasses:
SisuIndex, SisuIndexAPT6

abstract class AbstractSisuIndex extends Object
Skeleton class that generates a qualified class index.
  • Field Details

  • Constructor Details

    • AbstractSisuIndex

      AbstractSisuIndex()
  • Method Details

    • addClassToIndex

      protected final void addClassToIndex(Object anno, Object clazz)
      Adds a new annotated class entry to the index.
      Parameters:
      anno - The annotation name
      clazz - The class name
    • flushIndex

      protected final void flushIndex()
      Writes the current index as a series of tables.
    • info

      protected abstract void info(String message)
      Reports an informational message.
      Parameters:
      message - The message
    • warn

      protected abstract void warn(String message)
      Reports a warning message.
      Parameters:
      message - The message
    • getReader

      protected abstract Reader getReader(String path) throws IOException
      Creates a new reader for the given input path.
      Parameters:
      path - The input path
      Returns:
      The relevant reader
      Throws:
      IOException
    • getWriter

      protected abstract Writer getWriter(String path) throws IOException
      Creates a new writer for the given output path.
      Parameters:
      path - The output path
      Returns:
      The relevant writer
      Throws:
      IOException
    • readTable

      private Set<String> readTable(Object name)
      Reads the given index table from disk to memory.
      Parameters:
      name - The table name
      Returns:
      Table elements
    • writeTable

      private void writeTable(Object name, Set<String> table)
      Writes the given index table from memory to disk.
      Parameters:
      name - The table name
      table - The elements