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, flushIndex
private 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.Processor
public boolean process(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations, javax.annotation.processing.RoundEnvironment round)
process
in interface javax.annotation.processing.Processor
public 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.Processor
public java.util.Set<java.lang.String> getSupportedAnnotationTypes()
getSupportedAnnotationTypes
in interface javax.annotation.processing.Processor
public java.util.Set<java.lang.String> getSupportedOptions()
getSupportedOptions
in interface javax.annotation.processing.Processor
public javax.lang.model.SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion
in interface javax.annotation.processing.Processor
protected void info(java.lang.String msg)
AbstractSisuIndex
info
in class AbstractSisuIndex
msg
- The messageprotected void warn(java.lang.String msg)
AbstractSisuIndex
warn
in class AbstractSisuIndex
msg
- The messageprotected java.io.Reader getReader(java.lang.String path) throws java.io.IOException
AbstractSisuIndex
getReader
in class AbstractSisuIndex
path
- The input pathjava.io.IOException
protected java.io.Writer getWriter(java.lang.String path) throws java.io.IOException
AbstractSisuIndex
getWriter
in class AbstractSisuIndex
path
- The output pathjava.io.IOException
private static boolean hasQualifier(javax.lang.model.element.TypeElement anno)