Package org.eclipse.sisu.space
Class SisuIndexAPT6
- java.lang.Object
-
- org.eclipse.sisu.space.AbstractSisuIndex
-
- org.eclipse.sisu.space.SisuIndexAPT6
-
- All Implemented Interfaces:
javax.annotation.processing.Processor
public final class SisuIndexAPT6 extends AbstractSisuIndex implements javax.annotation.processing.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
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
ALL
private javax.annotation.processing.ProcessingEnvironment
environment
private static boolean
HAS_QUALIFIER
private static java.lang.String
NONE
private java.lang.String
qualifiers
private static java.lang.String
QUALIFIERS
-
Fields inherited from class org.eclipse.sisu.space.AbstractSisuIndex
INDEX_FOLDER, NAMED, QUALIFIER
-
-
Constructor Summary
Constructors Constructor Description SisuIndexAPT6()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.Reader
getReader(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.SourceVersion
getSupportedSourceVersion()
protected java.io.Writer
getWriter(java.lang.String path)
Creates a new writer for the given output path.private static boolean
hasQualifier(javax.lang.model.element.TypeElement anno)
protected void
info(java.lang.String msg)
Reports an informational message.void
init(javax.annotation.processing.ProcessingEnvironment _environment)
boolean
process(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations, javax.annotation.processing.RoundEnvironment round)
protected void
warn(java.lang.String msg)
Reports a warning message.-
Methods inherited from class org.eclipse.sisu.space.AbstractSisuIndex
addClassToIndex, flushIndex
-
-
-
-
Field Detail
-
QUALIFIERS
private static final java.lang.String QUALIFIERS
- See Also:
- Constant Field Values
-
ALL
private static final java.lang.String ALL
- See Also:
- Constant Field Values
-
NONE
private static final java.lang.String NONE
- See Also:
- Constant Field Values
-
HAS_QUALIFIER
private static final boolean HAS_QUALIFIER
-
environment
private javax.annotation.processing.ProcessingEnvironment environment
-
qualifiers
private java.lang.String qualifiers
-
-
Method Detail
-
init
public void init(javax.annotation.processing.ProcessingEnvironment _environment)
- Specified by:
init
in 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:
process
in 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:
getCompletions
in interfacejavax.annotation.processing.Processor
-
getSupportedAnnotationTypes
public java.util.Set<java.lang.String> getSupportedAnnotationTypes()
- Specified by:
getSupportedAnnotationTypes
in interfacejavax.annotation.processing.Processor
-
getSupportedOptions
public java.util.Set<java.lang.String> getSupportedOptions()
- Specified by:
getSupportedOptions
in interfacejavax.annotation.processing.Processor
-
getSupportedSourceVersion
public javax.lang.model.SourceVersion getSupportedSourceVersion()
- Specified by:
getSupportedSourceVersion
in interfacejavax.annotation.processing.Processor
-
info
protected void info(java.lang.String msg)
Description copied from class:AbstractSisuIndex
Reports an informational message.- Specified by:
info
in classAbstractSisuIndex
- Parameters:
msg
- The message
-
warn
protected void warn(java.lang.String msg)
Description copied from class:AbstractSisuIndex
Reports a warning message.- Specified by:
warn
in classAbstractSisuIndex
- Parameters:
msg
- The message
-
getReader
protected java.io.Reader getReader(java.lang.String path) throws java.io.IOException
Description copied from class:AbstractSisuIndex
Creates a new reader for the given input path.- Specified by:
getReader
in classAbstractSisuIndex
- 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.IOException
Description copied from class:AbstractSisuIndex
Creates a new writer for the given output path.- Specified by:
getWriter
in classAbstractSisuIndex
- Parameters:
path
- The output path- Returns:
- The relevant writer
- Throws:
java.io.IOException
-
hasQualifier
private static boolean hasQualifier(javax.lang.model.element.TypeElement anno)
-
-