public final class

SisuIndexAPT6

extends Object
implements Processor
java.lang.Object
   ↳ org.eclipse.sisu.space.SisuIndexAPT6

Class Overview

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.

Summary

Public Constructors
SisuIndexAPT6()
Public Methods
Iterable<? extends Completion> getCompletions(Element element, AnnotationMirror annotation, ExecutableElement member, String userText)
Set<String> getSupportedAnnotationTypes()
Set<String> getSupportedOptions()
SourceVersion getSupportedSourceVersion()
void init(ProcessingEnvironment _environment)
boolean process(Set<? extends TypeElement> annotations, RoundEnvironment round)
Protected Methods
synchronized final void addClassToIndex(Object anno, Object clazz)
Adds a new annotated class entry to the index.
synchronized final void flushIndex()
Writes the current index as a series of tables.
Reader getReader(String path)
Creates a new reader for the given input path.
Writer getWriter(String path)
Creates a new writer for the given output path.
void info(String msg)
Reports an informational message.
void warn(String msg)
Reports a warning message.
[Expand]
Inherited Methods
From class java.lang.Object
From interface javax.annotation.processing.Processor

Public Constructors

public SisuIndexAPT6 ()

Public Methods

public Iterable<? extends Completion> getCompletions (Element element, AnnotationMirror annotation, ExecutableElement member, String userText)

public Set<String> getSupportedAnnotationTypes ()

public Set<String> getSupportedOptions ()

public SourceVersion getSupportedSourceVersion ()

public void init (ProcessingEnvironment _environment)

public boolean process (Set<? extends TypeElement> annotations, RoundEnvironment round)

Protected Methods

protected final synchronized void addClassToIndex (Object anno, Object clazz)

Adds a new annotated class entry to the index.

Parameters
anno The annotation name
clazz The class name

protected final synchronized void flushIndex ()

Writes the current index as a series of tables.

protected Reader getReader (String path)

Creates a new reader for the given input path.

Parameters
path The input path
Returns
  • The relevant reader
Throws
IOException

protected Writer getWriter (String path)

Creates a new writer for the given output path.

Parameters
path The output path
Returns
  • The relevant writer
Throws
IOException

protected void info (String msg)

Reports an informational message.

Parameters
msg The message

protected void warn (String msg)

Reports a warning message.

Parameters
msg The message