@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 Classes to verify:
Class also overrides Object.toString()
AbstractProcessor.Check<T extends Element>, AbstractProcessor.Criterion<T extends Element>checks, criteriafiler, javacelements, fm, MODIFIERS, types| 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, processgetCompletions, getSupportedOptions, getSupportedSourceVersion, print, print, print, print, print, whenAnnotationProcessingFinishedasClass, 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, withParametersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasModifierSet, declaration, declaration, declaration, declaration, declaration, declaration, exceptions, getModifiers, getModifiers, modifiers, parameters, type, typepublic ObjectToStringProcessor()
public void init(ProcessingEnvironment processingEnv)
init in interface Processorinit in class AnnotatedNoAnnotationProcessorprotected void process(RoundEnvironment roundEnv, Element element)
AnnotatedNoAnnotationProcessorElement. Default implementation does
nothing.process in class AnnotatedNoAnnotationProcessorroundEnv - The RoundEnvironment.element - The Element.Copyright © 2015–2021. All rights reserved.