org.apache.beehive.netui.compiler.apt
Class BaseAnnotationProcessor

Object
  extended by Diagnostics
      extended by TwoPhaseAnnotationProcessor
          extended by BaseAnnotationProcessor
All Implemented Interfaces:
AnnotationProcessor
Direct Known Subclasses:
FormBeanAnnotationProcessor, PageFlowAnnotationProcessor

public abstract class BaseAnnotationProcessor
extends TwoPhaseAnnotationProcessor


Constructor Summary
protected BaseAnnotationProcessor(Set<AnnotationTypeDeclaration> annotationTypeDecls, AnnotationProcessorEnvironment env)
           
 
Method Summary
 void check(Declaration decl)
           
protected static boolean expectAnnotation(ClassDeclaration classDecl, String annotationBaseName, String fileExtensionRequiresAnnotation, String baseClass, Diagnostics diagnostics)
           
 void generate(Declaration decl)
           
protected abstract  BaseChecker getChecker(ClassDeclaration decl, Diagnostics diagnostics)
           
protected abstract  BaseGenerator getGenerator(ClassDeclaration decl, Diagnostics diagnostics)
           
protected  String getResourceString(String key, Object... args)
           
protected  SourceFileInfo getSourceFileInfo(ClassDeclaration decl)
           
 void process()
           
protected  void setSourceFileInfo(ClassDeclaration decl, SourceFileInfo sourceFileInfo)
           
 
Methods inherited from class TwoPhaseAnnotationProcessor
check, generate, printError, printWarning
 
Methods inherited from class Diagnostics
addError, addError, addError, addErrorArrayArgs, addWarning, addWarning, addWarning, getAnnotationProcessorEnvironment, hasErrors, setHasErrors
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseAnnotationProcessor

protected BaseAnnotationProcessor(Set<AnnotationTypeDeclaration> annotationTypeDecls,
                                  AnnotationProcessorEnvironment env)
Method Detail

check

public void check(Declaration decl)
Specified by:
check in class TwoPhaseAnnotationProcessor

generate

public void generate(Declaration decl)
Specified by:
generate in class TwoPhaseAnnotationProcessor

process

public void process()
Specified by:
process in interface AnnotationProcessor
Overrides:
process in class TwoPhaseAnnotationProcessor

getChecker

protected abstract BaseChecker getChecker(ClassDeclaration decl,
                                          Diagnostics diagnostics)

getGenerator

protected abstract BaseGenerator getGenerator(ClassDeclaration decl,
                                              Diagnostics diagnostics)

getSourceFileInfo

protected SourceFileInfo getSourceFileInfo(ClassDeclaration decl)

setSourceFileInfo

protected void setSourceFileInfo(ClassDeclaration decl,
                                 SourceFileInfo sourceFileInfo)

expectAnnotation

protected static boolean expectAnnotation(ClassDeclaration classDecl,
                                          String annotationBaseName,
                                          String fileExtensionRequiresAnnotation,
                                          String baseClass,
                                          Diagnostics diagnostics)

getResourceString

protected String getResourceString(String key,
                                   Object... args)
Overrides:
getResourceString in class TwoPhaseAnnotationProcessor