@ServiceProviderFor(value=javax.annotation.processing.Processor.class) @ForElementKinds(value=CLASS) @ForSubclassesOf(value=java.io.Serializable.class) public class SerializableProcessor extends AnnotatedNoAnnotationProcessor
Processor implementation to check subclasses of
Serializable to verify a serialVersionUID field has been
defined.AbstractProcessor.Check<T extends Element>, AbstractProcessor.Criterion<T extends Element>checks, criteriaelements, filer, fm, javac, trees, typesprocessingEnv| Constructor and Description |
|---|
SerializableProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
process(RoundEnvironment roundEnv,
Element element)
Method to process each
Element. |
protected void |
whenAnnotationProcessingFinished()
Callback method to signal
TaskEvent.Kind.ANNOTATION_PROCESSING is
finished. |
getForElementKinds, getForSubclassesOf, getMustImplement, getSupportedAnnotationTypes, getWithModifiers, getWithoutModifiers, init, processasTypeElement, 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, 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 SerializableProcessor()
protected void whenAnnotationProcessingFinished()
AbstractProcessorTaskEvent.Kind.ANNOTATION_PROCESSING is
finished.whenAnnotationProcessingFinished in class AbstractProcessorprotected void process(RoundEnvironment roundEnv, Element element)
AnnotatedNoAnnotationProcessorElement. Default implementation does
nothing.process in class AnnotatedNoAnnotationProcessorroundEnv - The RoundEnvironment.element - The Element.Copyright © 2015–2020 Allen D. Ball. All rights reserved.