public abstract class AnnotatedNoAnnotationProcessor extends AbstractProcessor
ForElementKinds,
ForSubclassesOf,
MustImplementAbstractProcessor.Check<T extends Element>, AbstractProcessor.Criterion<T extends Element>| Modifier and Type | Field and Description |
|---|---|
protected List<Consumer<Element>> |
checks |
protected List<Predicate<Element>> |
criteria |
elements, filer, fm, javac, trees, typesprocessingEnv| Constructor and Description |
|---|
AnnotatedNoAnnotationProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected EnumSet<ElementKind> |
getForElementKinds()
See
ForElementKinds. |
protected Class<?> |
getForSubclassesOf()
See
ForSubclassesOf. |
protected Class<?>[] |
getMustImplement()
See
MustImplement. |
Set<String> |
getSupportedAnnotationTypes() |
protected EnumSet<Modifier> |
getWithModifiers()
See
WithModifiers. |
protected EnumSet<Modifier> |
getWithoutModifiers()
See
WithoutModifiers. |
void |
init(ProcessingEnvironment processingEnv) |
protected void |
process(RoundEnvironment roundEnv,
Element element)
Method to process each
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 AnnotatedNoAnnotationProcessor()
protected EnumSet<ElementKind> getForElementKinds()
ForElementKinds.EnumSet of ElementKinds specified by the
annotation (null if no annotation present).protected EnumSet<Modifier> getWithModifiers()
WithModifiers.protected EnumSet<Modifier> getWithoutModifiers()
WithoutModifiers.protected Class<?> getForSubclassesOf()
ForSubclassesOf.Class specified by the annotation (null
if no annotation present).protected Class<?>[] getMustImplement()
MustImplement.Classes specified by the annotation
(null if no annotation present).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 AbstractProcessorfalse always.protected void process(RoundEnvironment roundEnv, Element element)
Element. Default implementation does
nothing.roundEnv - The RoundEnvironment.element - The Element.Copyright © 2015–2020 Allen D. Ball. All rights reserved.