Package org.eclipse.sisu.space
Class SisuIndexAPT6
java.lang.Object
org.eclipse.sisu.space.SisuIndexAPT6
- All Implemented Interfaces:
Processor
Java 6 Annotation
Processor
that generates a qualified class index for the current build.
The index consists of qualified class names listed in META-INF/sisu/javax.inject.Named
.
- See Also:
-
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.Iterable
<? extends Completion> getCompletions
(Element element, AnnotationMirror annotation, ExecutableElement member, String userText) protected Reader
Creates a new reader for the given input path.protected Writer
Creates a new writer for the given output path.protected void
Reports an informational message.void
init
(ProcessingEnvironment _environment) boolean
process
(Set<? extends TypeElement> annotations, RoundEnvironment round) protected void
Reports a warning message.
-
Constructor Details
-
SisuIndexAPT6
public SisuIndexAPT6()
-
-
Method Details
-
init
-
process
-
getCompletions
public Iterable<? extends Completion> getCompletions(Element element, AnnotationMirror annotation, ExecutableElement member, String userText) - Specified by:
getCompletions
in interfaceProcessor
-
getSupportedAnnotationTypes
- Specified by:
getSupportedAnnotationTypes
in interfaceProcessor
-
getSupportedOptions
- Specified by:
getSupportedOptions
in interfaceProcessor
-
getSupportedSourceVersion
- Specified by:
getSupportedSourceVersion
in interfaceProcessor
-
info
Reports an informational message.- Parameters:
msg
- The message
-
warn
Reports a warning message.- Parameters:
msg
- 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
-
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.
-