@ServiceProviderFor(value=javax.annotation.processing.Processor.class) @For(value=CompileTimeCheck.class) public class CompileTimeCheckProcessor extends AnnotatedProcessor
AbstractProcessor.Check<T extends Element>, AbstractProcessor.Criterion<T extends Element>
filer, javac
elements, fm, MODIFIERS, types
Constructor and Description |
---|
CompileTimeCheckProcessor() |
Modifier and Type | Method and Description |
---|---|
protected void |
process(RoundEnvironment roundEnv,
TypeElement annotation,
Element element)
Callback method to process an annotated
Element . |
protected void |
whenAnnotationProcessingFinished()
Callback method to signal
TaskEvent.Kind.ANNOTATION_PROCESSING is
finished. |
getSupportedAnnotationTypeList, getSupportedAnnotationTypes, init, process
getCompletions, getSupportedOptions, getSupportedSourceVersion, print, print, print, print, print
asClass, 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, withParameters
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 CompileTimeCheckProcessor()
protected void whenAnnotationProcessingFinished()
AbstractProcessor
TaskEvent.Kind.ANNOTATION_PROCESSING
is
finished.whenAnnotationProcessingFinished
in class AbstractProcessor
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
.Copyright © 2015–2021. All rights reserved.