org.apache.beehive.netui.compiler.apt
Class BaseAnnotationProcessor
Object
Diagnostics
TwoPhaseAnnotationProcessor
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)
|
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 |
BaseAnnotationProcessor
protected BaseAnnotationProcessor(Set<AnnotationTypeDeclaration> annotationTypeDecls,
AnnotationProcessorEnvironment env)
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