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 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.Iterable<? extends Completion> getCompletions(Element element, AnnotationMirror annotation, ExecutableElement member, String userText) protected ReaderCreates a new reader for the given input path.protected WriterCreates a new writer for the given output path.protected voidReports an informational message.voidinit(ProcessingEnvironment _environment) booleanprocess(Set<? extends TypeElement> annotations, RoundEnvironment round) protected voidReports 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:
getCompletionsin interfaceProcessor
-
getSupportedAnnotationTypes
- Specified by:
getSupportedAnnotationTypesin interfaceProcessor
-
getSupportedOptions
- Specified by:
getSupportedOptionsin interfaceProcessor
-
getSupportedSourceVersion
- Specified by:
getSupportedSourceVersionin 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.
-