Package ball.annotation.processing
Class ObjectToStringProcessor
- java.lang.Object
-
- ball.annotation.processing.JavaxLangModelUtilities
-
- ball.annotation.processing.AbstractProcessor
-
- ball.annotation.processing.AnnotatedNoAnnotationProcessor
-
- ball.annotation.processing.ObjectToStringProcessor
-
- All Implemented Interfaces:
JavaLangReflectMethods,Processor
@ServiceProviderFor(javax.annotation.processing.Processor.class) @ForElementKinds(CLASS) @ForSubclassesOf(java.lang.Object.class) @WithoutModifiers(ABSTRACT) public class ObjectToStringProcessor extends AnnotatedNoAnnotationProcessor
Processorimplementation to checkClasses to verify:-
The implementing
Classalso overridesObject.toString()
- Author:
- Allen D. Ball
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ball.annotation.processing.AbstractProcessor
AbstractProcessor.Check<T extends Element>, AbstractProcessor.Criterion<T extends Element>
-
-
Field Summary
-
Fields inherited from class ball.annotation.processing.AnnotatedNoAnnotationProcessor
checks, criteria
-
Fields inherited from class ball.annotation.processing.AbstractProcessor
filer, javac
-
Fields inherited from class ball.annotation.processing.JavaxLangModelUtilities
elements, fm, types
-
-
Constructor Summary
Constructors Constructor Description ObjectToStringProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit(ProcessingEnvironment processingEnv)protected voidprocess(RoundEnvironment roundEnv, Element element)Method to process eachElement.-
Methods inherited from class ball.annotation.processing.AnnotatedNoAnnotationProcessor
getForElementKinds, getForSubclassesOf, getMustImplement, getSupportedAnnotationTypes, getWithModifiers, getWithoutModifiers, process
-
Methods inherited from class ball.annotation.processing.AbstractProcessor
getCompletions, getSupportedOptions, getSupportedSourceVersion, print, print, print, print, print, whenAnnotationProcessingFinished
-
Methods inherited from class ball.annotation.processing.JavaxLangModelUtilities
asClass, asExecutableElement, asExecutableElement, asPackageInfoClass, asTypeElement, asTypeMirror, asTypeMirrorList, asVariableElement, getAnnotationMirror, getAnnotationMirror, getAnnotationValue, getClassLoader, getClassPathClassLoader, getClassPathClassLoader, getConstructor, getEnclosingTypeElement, getMethod, getPropertyName, getPropertyNames, getTypeElementFor, hasSameSignatureAs, hasSameSignatureAs, hasSameSignatureAs, implementationOf, isAssignableTo, isAssignableTo, isAssignableTo, isAssignableTo, isEmptyArray, isGenerated, isGetterMethod, named, overrides, overrides, signature, signature, specifiedBy, toEnumSet, toModifiers, with, withModifiers, withModifiers, without, withoutModifiers, withoutModifiers, withParameters, withParameters
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ball.lang.reflect.JavaLangReflectMethods
asModifierSet, declaration, declaration, declaration, declaration, declaration, declaration, declaration, declaration, exceptions, getModifiers, getModifiers, modifiers, parameters, type, type
-
-
-
-
Constructor Detail
-
ObjectToStringProcessor
public ObjectToStringProcessor()
-
-
Method Detail
-
init
public void init(ProcessingEnvironment processingEnv)
- Specified by:
initin interfaceProcessor- Overrides:
initin classAnnotatedNoAnnotationProcessor
-
process
protected void process(RoundEnvironment roundEnv, Element element)
Description copied from class:AnnotatedNoAnnotationProcessorMethod to process eachElement. Default implementation does nothing.- Overrides:
processin classAnnotatedNoAnnotationProcessor- Parameters:
roundEnv- TheRoundEnvironment.element- TheElement.
-
-