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 Processor
public Set<String> getSupportedAnnotationTypes()
getSupportedAnnotationTypes
in interface Processor
public Set<String> getSupportedOptions()
getSupportedOptions
in interface Processor
public SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion
in interface Processor
protected void info(String msg)
msg
- The messageprotected void warn(String msg)
msg
- The messageprotected Reader getReader(String path) throws IOException
path
- The input pathIOException
protected Writer getWriter(String path) throws IOException
path
- The output pathIOException
protected final void addClassToIndex(Object anno, Object clazz)
anno
- The annotation nameclazz
- The class nameprotected final void flushIndex()
Copyright © 2017. All rights reserved.