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 Stringprivate ProcessingEnvironmentprivate static final booleanprivate static final Stringprivate Stringprivate static final StringFields 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 ReaderCreates a new reader for the given input path.protected WriterCreates a new writer for the given output path.private static booleanhasQualifier(TypeElement anno) protected voidReports an informational message.voidinit(ProcessingEnvironment _environment) booleanprocess(Set<? extends TypeElement> annotations, RoundEnvironment round) protected voidReports 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:
getCompletionsin interfaceProcessor
-
getSupportedAnnotationTypes
- Specified by:
getSupportedAnnotationTypesin interfaceProcessor
-
getSupportedOptions
- Specified by:
getSupportedOptionsin interfaceProcessor
-
getSupportedSourceVersion
- Specified by:
getSupportedSourceVersionin interfaceProcessor
-
info
Description copied from class:AbstractSisuIndexReports an informational message.- Specified by:
infoin classAbstractSisuIndex- Parameters:
msg- The message
-
warn
Description copied from class:AbstractSisuIndexReports a warning message.- Specified by:
warnin classAbstractSisuIndex- Parameters:
msg- The message
-
getReader
Description copied from class:AbstractSisuIndexCreates a new reader for the given input path.- Specified by:
getReaderin classAbstractSisuIndex- Parameters:
path- The input path- Returns:
- The relevant reader
- Throws:
IOException
-
getWriter
Description copied from class:AbstractSisuIndexCreates a new writer for the given output path.- Specified by:
getWriterin classAbstractSisuIndex- Parameters:
path- The output path- Returns:
- The relevant writer
- Throws:
IOException
-
hasQualifier
-