Class SisuIndex

    • Constructor Detail

      • SisuIndex

        public SisuIndex​(File targetDirectory)
    • Method Detail

      • main

        public static void main​(String[] args)
      • index

        public final void index​(ClassSpace _space)
      • enterSpace

        public final void enterSpace​(ClassSpace _space)
        Description copied from interface: SpaceVisitor
        Enters the class space.
        Specified by:
        enterSpace in interface SpaceVisitor
        Parameters:
        _space - The class space
      • visitClass

        public final ClassVisitor visitClass​(URL url)
        Description copied from interface: SpaceVisitor
        Visits a class resource in the class space.
        Specified by:
        visitClass in interface SpaceVisitor
        Parameters:
        url - The class resource URL
        Returns:
        Class visitor; null if it is not interested in visiting the class
      • enterClass

        public final void enterClass​(int modifiers,
                                     String name,
                                     String _extends,
                                     String[] _implements)
        Description copied from interface: ClassVisitor
        Enters the class definition.
        Specified by:
        enterClass in interface ClassVisitor
        Parameters:
        modifiers - The access modifiers
        name - The internal name, such as "javax/inject/Provider"
        _extends - Extends this superclass
        _implements - Implements these interfaces
      • leaveClass

        public final void leaveClass()
        Description copied from interface: ClassVisitor
        Leaves the class definition.
        Specified by:
        leaveClass in interface ClassVisitor
      • leaveSpace

        public final void leaveSpace()
        Description copied from interface: SpaceVisitor
        Leaves the class space.
        Specified by:
        leaveSpace in interface SpaceVisitor
      • info

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

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

        protected 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 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
      • 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.