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.
| Name | Mode | Type | isHidden | isBound | isConstrained |
|---|---|---|---|---|---|
| supportedAnnotationTypes | R | Set<String> | false | false | false |
| supportedOptions | R | Set<String> | false | false | false |
| supportedSourceVersion | R | SourceVersion | false | false | false |
AnnotationValueMustConvertTo,
TargetMustBe,
TargetMustExtend,
TargetMustHaveConstructor,
TargetMustHaveModifiers,
TargetMustNotHaveModifiersAbstractProcessor.Check<T extends Element>, AbstractProcessor.Criterion<T extends Element>filer, javacelements, fm, MODIFIERS, types| 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) |
getCompletions, getSupportedOptions, getSupportedSourceVersion, print, print, print, print, print, whenAnnotationProcessingFinishedasClass, asExecutableElement, asExecutableElement, asPackageInfoClass, asTypeElement, asTypeMirror, asTypeMirrorList, asVariableElement, getAnnotationMirror, getAnnotationMirror, getAnnotationValue, getClassLoader, getClassPathClassLoader, getClassPathClassLoader, getConstructor, getEnclosingTypeElement, getMethod, getMethod, getPropertyName, getPropertyNames, getTypeElementFor, hasSameSignatureAs, hasSameSignatureAs, hasSameSignatureAs, implementationOf, isAssignableTo, isAssignableTo, isAssignableTo, isAssignableTo, isEmptyArray, isGetterMethod, named, overrides, overrides, signature, signature, specifiedBy, toEnumSet, toModifiers, with, withModifiers, withModifiers, without, withoutModifiers, withoutModifiers, withParameters, withParametersclone, 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–2021. All rights reserved.