public final class SisuIndexAPT6
extends java.lang.Object
implements javax.annotation.processing.Processor
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.
| Constructor and Description |
|---|
SisuIndexAPT6() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addClassToIndex(java.lang.Object anno,
java.lang.Object clazz)
Adds a new annotated class entry to the index.
|
protected void |
flushIndex()
Writes the current index as a series of tables.
|
java.lang.Iterable<? extends javax.annotation.processing.Completion> |
getCompletions(javax.lang.model.element.Element element,
javax.lang.model.element.AnnotationMirror annotation,
javax.lang.model.element.ExecutableElement member,
java.lang.String userText) |
protected java.io.Reader |
getReader(java.lang.String path)
Creates a new reader for the given input path.
|
java.util.Set<java.lang.String> |
getSupportedAnnotationTypes() |
java.util.Set<java.lang.String> |
getSupportedOptions() |
javax.lang.model.SourceVersion |
getSupportedSourceVersion() |
protected java.io.Writer |
getWriter(java.lang.String path)
Creates a new writer for the given output path.
|
protected void |
info(java.lang.String msg)
Reports an informational message.
|
void |
init(javax.annotation.processing.ProcessingEnvironment _environment) |
boolean |
process(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations,
javax.annotation.processing.RoundEnvironment round) |
protected void |
warn(java.lang.String msg)
Reports a warning message.
|
public void init(javax.annotation.processing.ProcessingEnvironment _environment)
init in interface javax.annotation.processing.Processorpublic boolean process(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations,
javax.annotation.processing.RoundEnvironment round)
process in interface javax.annotation.processing.Processorpublic java.lang.Iterable<? extends javax.annotation.processing.Completion> getCompletions(javax.lang.model.element.Element element,
javax.lang.model.element.AnnotationMirror annotation,
javax.lang.model.element.ExecutableElement member,
java.lang.String userText)
getCompletions in interface javax.annotation.processing.Processorpublic java.util.Set<java.lang.String> getSupportedAnnotationTypes()
getSupportedAnnotationTypes in interface javax.annotation.processing.Processorpublic java.util.Set<java.lang.String> getSupportedOptions()
getSupportedOptions in interface javax.annotation.processing.Processorpublic javax.lang.model.SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion in interface javax.annotation.processing.Processorprotected void info(java.lang.String msg)
msg - The messageprotected void warn(java.lang.String msg)
msg - The messageprotected java.io.Reader getReader(java.lang.String path)
throws java.io.IOException
path - The input pathjava.io.IOExceptionprotected java.io.Writer getWriter(java.lang.String path)
throws java.io.IOException
path - The output pathjava.io.IOExceptionprotected final void addClassToIndex(java.lang.Object anno,
java.lang.Object clazz)
anno - The annotation nameclazz - The class nameprotected final void flushIndex()