Class ValueTranslatorServiceAnnotationProcessor
java.lang.Object
javax.annotation.processing.AbstractProcessor
org.tentackle.apt.AbstractServiceAnnotationProcessor
org.tentackle.fx.apt.ValueTranslatorServiceAnnotationProcessor
- All Implemented Interfaces:
Processor
@SupportedAnnotationTypes("org.tentackle.fx.ValueTranslatorService")
@AnnotationProcessor
public class ValueTranslatorServiceAnnotationProcessor
extends AbstractServiceAnnotationProcessor
Annotation processor for the
Enforces the implementation of
@ValueTranslatorService annotation.Enforces the implementation of
ValueTranslator and one of the following constructors:
- (
FxComponent) - (
FxComponent, Class)
- Author:
- harald
-
Field Summary
Fields inherited from class AbstractServiceAnnotationProcessor
elementUtils, noArgsVisitor, typeUtils, typeVisitorFields inherited from class AbstractProcessor
processingEnv -
Constructor Summary
ConstructorsConstructorDescriptionCreates the annotation processor. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprocessClass(Element element) Processes the annotated class.
The default implementation reports an error if the class is abstract.Methods inherited from class AbstractServiceAnnotationProcessor
acceptTypeVisitor, getSupportedSourceVersion, init, process, verifyConstructor, verifyImplementsMethods inherited from class AbstractProcessor
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, isInitialized
-
Constructor Details
-
ValueTranslatorServiceAnnotationProcessor
public ValueTranslatorServiceAnnotationProcessor()Creates the annotation processor.
-
-
Method Details
-
processClass
Description copied from class:AbstractServiceAnnotationProcessorProcesses the annotated class.
The default implementation reports an error if the class is abstract. Subclasses usually override this method to apply further checks.- Overrides:
processClassin classAbstractServiceAnnotationProcessor- Parameters:
element- the class
-