public abstract class AnnotatedNoAnnotationProcessor extends AbstractProcessor
ForElementKinds
,
ForSubclassesOf
,
MustImplement
AbstractProcessor.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, types
processingEnv
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, withParameters
getCompletions, getSupportedOptions, isInitialized
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asModifierSet, declaration, declaration, declaration, declaration, declaration, declaration, exceptions, getModifiers, getModifiers, modifiers, parameters, type, type
public AnnotatedNoAnnotationProcessor()
protected EnumSet<ElementKind> getForElementKinds()
ForElementKinds
.EnumSet
of ElementKind
s 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
.Class
es specified by the annotation
(null
if no annotation present).public Set<String> getSupportedAnnotationTypes()
getSupportedAnnotationTypes
in interface Processor
getSupportedAnnotationTypes
in class AbstractProcessor
public void init(ProcessingEnvironment processingEnv)
init
in interface Processor
init
in class AbstractProcessor
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
process
in interface Processor
process
in class AbstractProcessor
false
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.