@ServiceProviderFor(value=javax.annotation.processing.Processor.class) @ForElementKinds(value=CLASS) @ForSubclassesOf(value=java.lang.Object.class) @WithoutModifiers(value=ABSTRACT) public class ObjectToStringProcessor extends AnnotatedNoAnnotationProcessor
Processor
implementation to check Class
es to verify:
Class
also overrides Object.toString()
AbstractProcessor.Check<T extends Element>, AbstractProcessor.Criterion<T extends Element>
checks, criteria
elements, filer, fm, javac, trees, types
processingEnv
Constructor and Description |
---|
ObjectToStringProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
init(ProcessingEnvironment processingEnv) |
protected void |
process(RoundEnvironment roundEnv,
Element element)
Method to process each
Element . |
getForElementKinds, getForSubclassesOf, getMustImplement, getSupportedAnnotationTypes, getWithModifiers, getWithoutModifiers, 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
asModifierSet, declaration, declaration, declaration, declaration, declaration, declaration, exceptions, getModifiers, getModifiers, modifiers, parameters, type, type
public ObjectToStringProcessor()
public void init(ProcessingEnvironment processingEnv)
init
in interface Processor
init
in class AnnotatedNoAnnotationProcessor
protected void process(RoundEnvironment roundEnv, Element element)
AnnotatedNoAnnotationProcessor
Element
. Default implementation does
nothing.process
in class AnnotatedNoAnnotationProcessor
roundEnv
- The RoundEnvironment
.element
- The Element
.Copyright © 2015–2020 Allen D. Ball. All rights reserved.