org.sonatype.guice.bean.scanners.index
Class QualifiedIndexAPT6

java.lang.Object
  extended by org.sonatype.guice.bean.scanners.index.AbstractSisuIndex
      extended by org.sonatype.guice.bean.scanners.index.QualifiedIndexAPT6
All Implemented Interfaces:
javax.annotation.processing.Processor

public final class QualifiedIndexAPT6
extends AbstractSisuIndex
implements javax.annotation.processing.Processor

Java 6 Annotation Processor that can generate META-INF/sisu index files for the current build.


Constructor Summary
QualifiedIndexAPT6()
           
 
Method Summary
 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.
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.sonatype.guice.bean.scanners.index.AbstractSisuIndex
addClassToIndex, flushIndex
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QualifiedIndexAPT6

public QualifiedIndexAPT6()
Method Detail

init

public void init(javax.annotation.processing.ProcessingEnvironment _environment)
Specified by:
init in interface javax.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 interface javax.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 interface javax.annotation.processing.Processor

getSupportedAnnotationTypes

public java.util.Set<java.lang.String> getSupportedAnnotationTypes()
Specified by:
getSupportedAnnotationTypes in interface javax.annotation.processing.Processor

getSupportedOptions

public java.util.Set<java.lang.String> getSupportedOptions()
Specified by:
getSupportedOptions in interface javax.annotation.processing.Processor

getSupportedSourceVersion

public javax.lang.model.SourceVersion getSupportedSourceVersion()
Specified by:
getSupportedSourceVersion in interface javax.annotation.processing.Processor

info

protected void info(java.lang.String msg)
Description copied from class: AbstractSisuIndex
Reports an informational message.

Specified by:
info in class AbstractSisuIndex
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 class AbstractSisuIndex
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 class AbstractSisuIndex
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 class AbstractSisuIndex
Parameters:
path - The output path
Returns:
The relevant writer
Throws:
java.io.IOException


Copyright © 2010-2011 Sonatype, Inc.. All Rights Reserved.