public final class SisuIndexAPT6 extends AbstractSisuIndex 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.
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
ALL |
private javax.annotation.processing.ProcessingEnvironment |
environment |
private static boolean |
HAS_QUALIFIER |
private static java.lang.String |
NONE |
private java.lang.String |
qualifiers |
private static java.lang.String |
QUALIFIERS |
INDEX_FOLDER, NAMED, QUALIFIER| Constructor and Description |
|---|
SisuIndexAPT6() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
private static boolean |
hasQualifier(javax.lang.model.element.TypeElement anno) |
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.
|
addClassToIndex, flushIndexprivate static final java.lang.String QUALIFIERS
private static final java.lang.String ALL
private static final java.lang.String NONE
private static final boolean HAS_QUALIFIER
private javax.annotation.processing.ProcessingEnvironment environment
private java.lang.String qualifiers
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)
AbstractSisuIndexinfo in class AbstractSisuIndexmsg - The messageprotected void warn(java.lang.String msg)
AbstractSisuIndexwarn in class AbstractSisuIndexmsg - The messageprotected java.io.Reader getReader(java.lang.String path)
throws java.io.IOException
AbstractSisuIndexgetReader in class AbstractSisuIndexpath - The input pathjava.io.IOExceptionprotected java.io.Writer getWriter(java.lang.String path)
throws java.io.IOException
AbstractSisuIndexgetWriter in class AbstractSisuIndexpath - The output pathjava.io.IOExceptionprivate static boolean hasQualifier(javax.lang.model.element.TypeElement anno)