com.googlecode.androidannotations.annotationprocessor
Class AnnotatedAbstractProcessor

java.lang.Object
  extended by javax.annotation.processing.AbstractProcessor
      extended by com.googlecode.androidannotations.annotationprocessor.AnnotatedAbstractProcessor
All Implemented Interfaces:
Processor
Direct Known Subclasses:
AndroidAnnotationProcessor

public abstract class AnnotatedAbstractProcessor
extends AbstractProcessor

Extends AbstractProcessor to override AbstractProcessor.getSupportedAnnotationTypes(), enabling usage of SupportedAnnotationClasses on a Processor.

Author:
Pierre-Yves Ricau

Field Summary
 
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv
 
Constructor Summary
AnnotatedAbstractProcessor()
           
 
Method Summary
 Set<Class<? extends Annotation>> getSupportedAnnotationClasses()
           
 Set<String> getSupportedAnnotationTypes()
          If the processor class is annotated with SupportedAnnotationClasses , return an unmodifiable set with the set of strings corresponding to the array of classes of the annotation.
 
Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedOptions, getSupportedSourceVersion, init, isInitialized, process
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotatedAbstractProcessor

public AnnotatedAbstractProcessor()
Method Detail

getSupportedAnnotationTypes

public Set<String> getSupportedAnnotationTypes()
If the processor class is annotated with SupportedAnnotationClasses , return an unmodifiable set with the set of strings corresponding to the array of classes of the annotation. If the class is not so annotated, the AbstractProcessor.getSupportedAnnotationTypes() method is called.

Specified by:
getSupportedAnnotationTypes in interface Processor
Overrides:
getSupportedAnnotationTypes in class AbstractProcessor
Returns:
the names of the annotation classes supported by this processor, or AbstractProcessor.getSupportedAnnotationTypes() result if none

getSupportedAnnotationClasses

public Set<Class<? extends Annotation>> getSupportedAnnotationClasses()


Copyright © 2010-2013. All Rights Reserved.