org.richfaces.cdk.apt
Class CdkProcessorImpl

java.lang.Object
  extended by javax.annotation.processing.AbstractProcessor
      extended by org.richfaces.cdk.apt.CdkProcessorImpl
All Implemented Interfaces:
javax.annotation.processing.Processor, CdkProcessor

public class CdkProcessorImpl
extends javax.annotation.processing.AbstractProcessor
implements CdkProcessor

Base class for all CDK Annotation processors. That class provides access to current CDK context and utility methods for Java source models.

Author:
asmirnov@exadel.com

Field Summary
 
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv
 
Constructor Summary
CdkProcessorImpl()
           
 
Method Summary
 java.util.Set<java.lang.String> getSupportedAnnotationTypes()
           
 javax.lang.model.SourceVersion getSupportedSourceVersion()
           
 void init(javax.annotation.processing.ProcessingEnvironment processingEnv)
           
 boolean process(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations, javax.annotation.processing.RoundEnvironment roundEnv)
           
protected  void processAnnotation(CdkAnnotationProcessor processor, javax.annotation.processing.RoundEnvironment environment)
           
 void processNonJavaSources()
           
protected  void sendError(javax.lang.model.element.Element componentElement, CdkProcessingException e)
           
 
Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedOptions, isInitialized
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.annotation.processing.Processor
getCompletions, getSupportedOptions
 

Constructor Detail

CdkProcessorImpl

public CdkProcessorImpl()
Method Detail

init

public void init(javax.annotation.processing.ProcessingEnvironment processingEnv)
Specified by:
init in interface javax.annotation.processing.Processor
Overrides:
init in class javax.annotation.processing.AbstractProcessor

process

public boolean process(java.util.Set<? extends javax.lang.model.element.TypeElement> annotations,
                       javax.annotation.processing.RoundEnvironment roundEnv)
Specified by:
process in interface javax.annotation.processing.Processor
Specified by:
process in class javax.annotation.processing.AbstractProcessor

processNonJavaSources

public void processNonJavaSources()
Specified by:
processNonJavaSources in interface CdkProcessor

processAnnotation

protected void processAnnotation(CdkAnnotationProcessor processor,
                                 javax.annotation.processing.RoundEnvironment environment)

sendError

protected void sendError(javax.lang.model.element.Element componentElement,
                         CdkProcessingException e)

getSupportedAnnotationTypes

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

getSupportedSourceVersion

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


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.