Package org.eclipse.sisu.space
Class SisuIndexAPT6
- java.lang.Object
-
- org.eclipse.sisu.space.SisuIndexAPT6
-
- All Implemented Interfaces:
Processor
public final class SisuIndexAPT6 extends Object implements Processor
Java 6 AnnotationProcessor
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
.- See Also:
- sisu-maven-plugin
-
-
Constructor Summary
Constructors Constructor Description SisuIndexAPT6()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
init
public void init(ProcessingEnvironment _environment)
-
process
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment round)
-
getCompletions
public Iterable<? extends Completion> getCompletions(Element element, AnnotationMirror annotation, ExecutableElement member, String userText)
- Specified by:
getCompletions
in interfaceProcessor
-
getSupportedAnnotationTypes
public Set<String> getSupportedAnnotationTypes()
- Specified by:
getSupportedAnnotationTypes
in interfaceProcessor
-
getSupportedOptions
public Set<String> getSupportedOptions()
- Specified by:
getSupportedOptions
in interfaceProcessor
-
getSupportedSourceVersion
public SourceVersion getSupportedSourceVersion()
- Specified by:
getSupportedSourceVersion
in interfaceProcessor
-
info
protected void info(String msg)
Reports an informational message.- Parameters:
msg
- The message
-
warn
protected void warn(String msg)
Reports a warning message.- Parameters:
msg
- The message
-
getReader
protected Reader getReader(String path) throws IOException
Creates a new reader for the given input path.- Parameters:
path
- The input path- Returns:
- The relevant reader
- Throws:
IOException
-
getWriter
protected Writer getWriter(String path) throws IOException
Creates a new writer for the given output path.- Parameters:
path
- The output path- Returns:
- The relevant writer
- Throws:
IOException
-
addClassToIndex
protected final void addClassToIndex(Object anno, Object clazz)
Adds a new annotated class entry to the index.- Parameters:
anno
- The annotation nameclazz
- The class name
-
flushIndex
protected final void flushIndex()
Writes the current index as a series of tables.
-
-