Module io.helidon.pico.processor
Package io.helidon.pico.processor
Class ContractAnnotationProcessor
java.lang.Object
javax.annotation.processing.AbstractProcessor
io.helidon.pico.processor.ContractAnnotationProcessor
Handles
@Contract annotations.-
Field Summary
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.this is a Java ServiceLoader implementation and the constructor should not be used directly -
Method Summary
Modifier and TypeMethodDescriptionThe annotation types we handle.If these annotation type names are found on the target then do not process.voidvoidvoiddoInner(TypeElement type, Void ignored) voidvoidinit(ProcessingEnvironment processingEnv) voidbooleanprocess(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) protected voidprocessServiceType(io.helidon.common.types.TypeName serviceTypeName, TypeElement type) Called to process the service type definition to add the basic service info constructs.voidvoidMethods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedOptions, isInitialized
-
Constructor Details
-
ContractAnnotationProcessor
Deprecated.this is a Java ServiceLoader implementation and the constructor should not be used directlyService loader based constructor.
-
-
Method Details
-
annoTypes
The annotation types we handle.- Returns:
- annotation types we handle
-
doInner
-
init
- Specified by:
initin interfaceProcessor- Overrides:
initin classAbstractProcessor
-
getSupportedSourceVersion
- Specified by:
getSupportedSourceVersionin interfaceProcessor- Overrides:
getSupportedSourceVersionin classAbstractProcessor
-
getSupportedAnnotationTypes
- Specified by:
getSupportedAnnotationTypesin interfaceProcessor- Overrides:
getSupportedAnnotationTypesin classAbstractProcessor
-
process
- Specified by:
processin interfaceProcessor- Specified by:
processin classAbstractProcessor
-
debug
-
debug
-
log
-
warn
-
warn
-
error
-
contraAnnotations
If these annotation type names are found on the target then do not process.- Returns:
- the set of annotation type names that should result in skipped processing for this processor type
-
processServiceType
protected void processServiceType(io.helidon.common.types.TypeName serviceTypeName, TypeElement type) Called to process the service type definition to add the basic service info constructs.- Parameters:
serviceTypeName- the service type nametype- the type element
-