Package ball.annotation.processing
Provides
Processor
implementation
classes.- Author:
- Allen D. Ball
- See Also:
javax.annotation.processing
-
Interface Summary Interface Description ClassFileProcessor Interface to provide an alternate entry point for annotation processing on compiled class files. -
Class Summary Class Description AbstractProcessor Provides abstract base class forProcessor
by providing aAbstractProcessor.getSupportedSourceVersion()
implementation, methods to reportDiagnostic.Kind.ERROR
s andDiagnostic.Kind.WARNING
s, and access toProcessingEnvironment.getFiler()
,ProcessingEnvironment.getElementUtils()
, andProcessingEnvironment.getTypeUtils()
.AnnotatedNoAnnotationProcessor AnnotatedProcessor AnnotationValueMustConvertTo.ProcessorImpl Processor
implementation.AntLibProcessor Generatesantlib.xml
(at location(s) specified byAntLib
) at the end of annotation processing.AntTaskAttributeConstraintProcessor AntTaskMixInProcessor Processor
implementation to verify concrete implementations ofAntTaskMixIn
are also subclasses ofTask
.AntTaskProcessor ClassFileProcessorProcessor Processor
implementation to verify concrete implementations ofClassFileProcessor
are also subclasses ofAnnotatedProcessor
.CompileTimeCheckProcessor ConstantValueMustConvertToProcessor Processor
implementation to verify constant initializers marked by theConstantValueMustConvertTo
can be converted to the specified type.ConstructorPropertiesProcessor Processor
implementation to verifyConstructorProperties
annotation are actual bean properties of theConstructor
'sClass
.For.ProcessorImpl Processor
implementation.ForElementKinds.ProcessorImpl Processor
implementation.ForSubclassesOf.ProcessorImpl Processor
implementation.JavaxLangModelUtilities Utility methods forProcessor
andTaglet
implementations.JAXBIndexProcessor ManifestProcessor MatcherGroupProcessor Processor
implementation to checkMatcherGroup
annotations.MustImplement.ProcessorImpl Processor
implementation.NoopProcessor No-opProcessor
to silence compilation warnings for 3rd-partyAnnotation
s that do not have a processor.NoOverrideProcessor Processor
implementation to identify overridingMethod
s that are not marked with theOverride
Annotation
.ObjectCloneProcessor Processor
implementation to checkObject.clone()
implementations to verify: The implementingClass
also implementsCloneable
The implementation throwsCloneNotSupportedException
(unless some "intravening" superclass' implementation does not) The implementation returns a subtype of the implementation typeObjectToStringProcessor Processor
implementation to checkClass
es to verify: The implementingClass
also overridesObject.toString()
PatternRegexProcessor Processor
implementation to checkPatternRegex
annotations.SerializableProcessor Processor
implementation to check subclasses ofSerializable
to verify aserialVersionUID
field has been defined.ServiceProviderForProcessor Processor
implementation to checkClass
es annotated withServiceProviderFor
to verify the annotatedClass
: Is concrete Has a public no-argument constructor Implements theClass
es specified byServiceProviderFor.value()
or implements Java 9'sjava.util.ServiceLoader.Provider
public static T provider()
method.Shims JDK 8, 9, and 10-specific methods forAbstractProcessor
.TargetMustBe.ProcessorImpl Processor
implementation.TargetMustExtend.ProcessorImpl Processor
implementation.TargetMustHaveConstructor.ProcessorImpl Processor
implementation.TargetMustHaveModifiers.ProcessorImpl Processor
implementation.TargetMustNotHaveModifiers.ProcessorImpl Processor
implementation.WithModifiers.ProcessorImpl Processor
implementation.WithoutModifiers.ProcessorImpl Processor
implementation. -
Annotation Types Summary Annotation Type Description AnnotationValueMustConvertTo For ForElementKinds ForSubclassesOf MustImplement TargetMustBe Annotation
to test an Annotated element is a specifickind
.TargetMustExtend TargetMustHaveConstructor Annotation
to specify annotatedClass
must have a corresponding constructor.TargetMustHaveModifiers TargetMustNotHaveModifiers WithModifiers AnnotatedNoAnnotationProcessor
Annotation
to specifyModifier
s that should be present on the target.WithoutModifiers AnnotatedNoAnnotationProcessor
Annotation
to specifyModifier
s that should be absent from the target.