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 AnnotationProcessorthat 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 voidaddClassToIndex(Object anno, Object clazz)Adds a new annotated class entry to the index.protected voidflushIndex()Writes the current index as a series of tables.Iterable<? extends Completion>getCompletions(Element element, AnnotationMirror annotation, ExecutableElement member, String userText)protected ReadergetReader(String path)Creates a new reader for the given input path.Set<String>getSupportedAnnotationTypes()Set<String>getSupportedOptions()SourceVersiongetSupportedSourceVersion()protected WritergetWriter(String path)Creates a new writer for the given output path.protected voidinfo(String msg)Reports an informational message.voidinit(ProcessingEnvironment _environment)booleanprocess(Set<? extends TypeElement> annotations, RoundEnvironment round)protected voidwarn(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:
getCompletionsin interfaceProcessor
-
getSupportedAnnotationTypes
public Set<String> getSupportedAnnotationTypes()
- Specified by:
getSupportedAnnotationTypesin interfaceProcessor
-
getSupportedOptions
public Set<String> getSupportedOptions()
- Specified by:
getSupportedOptionsin interfaceProcessor
-
getSupportedSourceVersion
public SourceVersion getSupportedSourceVersion()
- Specified by:
getSupportedSourceVersionin 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.
-
-