Package org.eclipse.sisu.space
Class SisuIndexAPT6
- java.lang.Object
-
- org.eclipse.sisu.space.SisuIndexAPT6
-
- All Implemented Interfaces:
javax.annotation.processing.Processor
public final class SisuIndexAPT6 extends java.lang.Object implements javax.annotation.processing.ProcessorJava 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(java.lang.Object anno, java.lang.Object clazz)Adds a new annotated class entry to the index.protected voidflushIndex()Writes the current index as a series of tables.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.ReadergetReader(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.SourceVersiongetSupportedSourceVersion()protected java.io.WritergetWriter(java.lang.String path)Creates a new writer for the given output path.protected voidinfo(java.lang.String msg)Reports an informational message.voidinit(javax.annotation.processing.ProcessingEnvironment _environment)booleanprocess(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations, javax.annotation.processing.RoundEnvironment round)protected voidwarn(java.lang.String msg)Reports a warning message.
-
-
-
Method Detail
-
init
public void init(javax.annotation.processing.ProcessingEnvironment _environment)
- Specified by:
initin interfacejavax.annotation.processing.Processor
-
process
public boolean process(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations, javax.annotation.processing.RoundEnvironment round)- Specified by:
processin interfacejavax.annotation.processing.Processor
-
getCompletions
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)- Specified by:
getCompletionsin interfacejavax.annotation.processing.Processor
-
getSupportedAnnotationTypes
public java.util.Set<java.lang.String> getSupportedAnnotationTypes()
- Specified by:
getSupportedAnnotationTypesin interfacejavax.annotation.processing.Processor
-
getSupportedOptions
public java.util.Set<java.lang.String> getSupportedOptions()
- Specified by:
getSupportedOptionsin interfacejavax.annotation.processing.Processor
-
getSupportedSourceVersion
public javax.lang.model.SourceVersion getSupportedSourceVersion()
- Specified by:
getSupportedSourceVersionin interfacejavax.annotation.processing.Processor
-
info
protected void info(java.lang.String msg)
Reports an informational message.- Parameters:
msg- The message
-
warn
protected void warn(java.lang.String msg)
Reports a warning message.- Parameters:
msg- The message
-
getReader
protected java.io.Reader getReader(java.lang.String path) throws java.io.IOExceptionCreates a new reader for the given input path.- Parameters:
path- The input path- Returns:
- The relevant reader
- Throws:
java.io.IOException
-
getWriter
protected java.io.Writer getWriter(java.lang.String path) throws java.io.IOExceptionCreates a new writer for the given output path.- Parameters:
path- The output path- Returns:
- The relevant writer
- Throws:
java.io.IOException
-
addClassToIndex
protected final void addClassToIndex(java.lang.Object anno, java.lang.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.
-
-