org.richfaces.cdk.apt
Class CdkProcessor

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

public class CdkProcessor
extends javax.annotation.processing.AbstractProcessor

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
CdkProcessor()
           
 
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)
           
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
 

Constructor Detail

CdkProcessor

public CdkProcessor()
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

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 © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.