@ServiceProviderFor(value=javax.annotation.processing.Processor.class) @For(value=ServiceProviderFor.class) public class ServiceProviderForProcessor extends AnnotatedProcessor implements ClassFileProcessor
Processor
implementation to check Class
es annotated with
ServiceProviderFor
to verify the annotated Class
:
Class
es specified by
ServiceProviderFor.value()
AbstractProcessor.Check<T extends Element>, AbstractProcessor.Criterion<T extends Element>
elements, filer, fm, javac, trees, types
processingEnv
Constructor and Description |
---|
ServiceProviderForProcessor() |
Modifier and Type | Method and Description |
---|---|
protected void |
process(RoundEnvironment roundEnv,
TypeElement annotation,
Element element)
Callback method to process an annotated
Element . |
void |
process(Set<Class<?>> set,
JavaFileManager fm)
Processor alternate entry point. |
getSupportedAnnotationTypeList, getSupportedAnnotationTypes, init, process
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
list
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, init, process
asModifierSet, declaration, declaration, declaration, declaration, declaration, declaration, exceptions, getModifiers, getModifiers, modifiers, parameters, type, type
public ServiceProviderForProcessor()
protected void process(RoundEnvironment roundEnv, TypeElement annotation, Element element)
AnnotatedProcessor
Element
. Default
implementation does nothing.process
in class AnnotatedProcessor
roundEnv
- The RoundEnvironment
.annotation
- The annotation TypeElement
.element
- The annotated Element
.public void process(Set<Class<?>> set, JavaFileManager fm) throws Throwable
ClassFileProcessor
Processor
alternate entry point.process
in interface ClassFileProcessor
set
- The Set
of Class
es to
analyze.fm
- The configured JavaFileManager
(for
writing output files).Throwable
- If the implementation throws a
Throwable
.Copyright © 2015–2020 Allen D. Ball. All rights reserved.