public abstract class AnnotatedProcessor extends AbstractProcessor
Processor base class for
processing Annotations specified by @For. Provides
built-in support for a number of Annotation types.AnnotationValueMustConvertTo,
TargetMustBe,
TargetMustExtend,
TargetMustHaveConstructor,
TargetMustHaveModifiers,
TargetMustNotHaveModifiersAbstractProcessor.Check<T extends Element>, AbstractProcessor.Criterion<T extends Element>elements, filer, fm, javac, trees, typesprocessingEnv| Constructor and Description |
|---|
AnnotatedProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected List<Class<? extends Annotation>> |
getSupportedAnnotationTypeList()
|
Set<String> |
getSupportedAnnotationTypes() |
void |
init(ProcessingEnvironment processingEnv) |
protected void |
process(RoundEnvironment roundEnv,
TypeElement annotation,
Element element)
Callback method to process an annotated
Element. |
boolean |
process(Set<? extends TypeElement> annotations,
RoundEnvironment roundEnv) |
asTypeElement, asTypeMirror, asTypeMirrorList, getAnnotationMirror, getAnnotationMirror, getAnnotationValue, getClassPathClassLoader, getConstructor, getMethod, getMethod, getPropertyName, getPropertyNames, getSupportedSourceVersion, hasSameSignatureAs, hasSameSignatureAs, hasSameSignatureAs, implementationOf, isAssignableTo, isAssignableTo, isAssignableTo, isAssignableTo, isEmptyArray, isGetterMethod, named, overrides, overrides, print, print, print, print, print, specifiedBy, toEnumSet, whenAnnotationProcessingFinished, with, withModifiers, withModifiers, without, withoutModifiers, withoutModifiers, withParameters, withParametersgetCompletions, getSupportedOptions, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasModifierSet, declaration, declaration, declaration, declaration, declaration, declaration, exceptions, getModifiers, getModifiers, modifiers, parameters, type, typepublic AnnotatedProcessor()
protected List<Class<? extends Annotation>> getSupportedAnnotationTypeList()
List of supported Annotation
Classes.public Set<String> getSupportedAnnotationTypes()
getSupportedAnnotationTypes in interface ProcessorgetSupportedAnnotationTypes in class AbstractProcessorpublic void init(ProcessingEnvironment processingEnv)
init in interface Processorinit in class AbstractProcessorpublic boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
process in interface Processorprocess in class AbstractProcessorprotected void process(RoundEnvironment roundEnv, TypeElement annotation, Element element)
Element. Default
implementation does nothing.roundEnv - The RoundEnvironment.annotation - The annotation TypeElement.element - The annotated Element.Copyright © 2015–2020 Allen D. Ball. All rights reserved.