Package org.eclipse.sisu.space
Class SisuIndexAPT6
java.lang.Object
org.eclipse.sisu.space.AbstractSisuIndex
org.eclipse.sisu.space.SisuIndexAPT6
- All Implemented Interfaces:
Processor
Java 6 Annotation
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
.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
private ProcessingEnvironment
private static final boolean
private static final String
private String
private static final String
Fields inherited from class org.eclipse.sisu.space.AbstractSisuIndex
INDEX_FOLDER, NAMED, QUALIFIER
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIterable<? extends Completion>
getCompletions
(Element element, AnnotationMirror annotation, ExecutableElement member, String userText) protected Reader
Creates a new reader for the given input path.protected Writer
Creates a new writer for the given output path.private static boolean
hasQualifier
(TypeElement anno) protected void
Reports an informational message.void
init
(ProcessingEnvironment _environment) boolean
process
(Set<? extends TypeElement> annotations, RoundEnvironment round) protected void
Reports a warning message.Methods inherited from class org.eclipse.sisu.space.AbstractSisuIndex
addClassToIndex, flushIndex
-
Field Details
-
QUALIFIERS
- See Also:
-
ALL
- See Also:
-
NONE
- See Also:
-
HAS_QUALIFIER
private static final boolean HAS_QUALIFIER -
environment
-
qualifiers
-
-
Constructor Details
-
SisuIndexAPT6
public SisuIndexAPT6()
-
-
Method Details
-
init
-
process
-
getCompletions
public Iterable<? extends Completion> getCompletions(Element element, AnnotationMirror annotation, ExecutableElement member, String userText) - Specified by:
getCompletions
in interfaceProcessor
-
getSupportedAnnotationTypes
- Specified by:
getSupportedAnnotationTypes
in interfaceProcessor
-
getSupportedOptions
- Specified by:
getSupportedOptions
in interfaceProcessor
-
getSupportedSourceVersion
- Specified by:
getSupportedSourceVersion
in interfaceProcessor
-
info
Description copied from class:AbstractSisuIndex
Reports an informational message.- Specified by:
info
in classAbstractSisuIndex
- Parameters:
msg
- The message
-
warn
Description copied from class:AbstractSisuIndex
Reports a warning message.- Specified by:
warn
in classAbstractSisuIndex
- Parameters:
msg
- The message
-
getReader
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:
IOException
-
getWriter
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:
IOException
-
hasQualifier
-