javax.annotation.processing
Class AbstractProcessor

java.lang.Object
  extended by javax.annotation.processing.AbstractProcessor
All Implemented Interfaces:
Processor

public abstract class AbstractProcessor
extends Object
implements Processor

Version:
$Revision$ $Date$

Field Summary
protected  ProcessingEnvironment processingEnv
           
 
Constructor Summary
protected AbstractProcessor()
           
 
Method Summary
 Iterable<? extends Completion> getCompletions(javax.lang.model.element.Element element, javax.lang.model.element.AnnotationMirror annotationMirror, javax.lang.model.element.ExecutableElement executableElement, String s)
           
 Set<String> getSupportedAnnotationTypes()
           
 Set<String> getSupportedOptions()
           
 javax.lang.model.SourceVersion getSupportedSourceVersion()
           
 void init(ProcessingEnvironment processingEnvironment)
           
protected  boolean isInitialized()
           
abstract  boolean process(Set<? extends javax.lang.model.element.TypeElement> typeElements, RoundEnvironment roundEnvironment)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

processingEnv

protected ProcessingEnvironment processingEnv
Constructor Detail

AbstractProcessor

protected AbstractProcessor()
Method Detail

isInitialized

protected boolean isInitialized()

process

public abstract boolean process(Set<? extends javax.lang.model.element.TypeElement> typeElements,
                                RoundEnvironment roundEnvironment)
Specified by:
process in interface Processor

getCompletions

public Iterable<? extends Completion> getCompletions(javax.lang.model.element.Element element,
                                                     javax.lang.model.element.AnnotationMirror annotationMirror,
                                                     javax.lang.model.element.ExecutableElement executableElement,
                                                     String s)
Specified by:
getCompletions in interface Processor

getSupportedAnnotationTypes

public Set<String> getSupportedAnnotationTypes()
Specified by:
getSupportedAnnotationTypes in interface Processor

getSupportedOptions

public Set<String> getSupportedOptions()
Specified by:
getSupportedOptions in interface Processor

getSupportedSourceVersion

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

init

public void init(ProcessingEnvironment processingEnvironment)
Specified by:
init in interface Processor


Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.