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