JacksonGeneratorProcessor

@SupportedOptions(value = ["kapt.kotlin.generated"])
class JacksonGeneratorProcessor : AbstractProcessor

KAPT (JSR 269) processor generating the Jackson serializers (MyClass_Serializer) and deserializers (MyClass_Deserializer) of the Kotlin classes annotated with @JacksonData (or listed in a @JacksonDataRegistry).

It replaces org.litote.jackson:jackson-generator (same annotations, same generated classes): it can be used in the same KAPT execution as kmongo-dsl-annotation-processor (its dependencies are embedded and relocated). The generated classes are listed in META-INF/services/org.litote.jackson.JacksonModuleServiceLoader and registered by the kmongo-dsl Jackson mapping.

Supported classes: Kotlin final or open classes without type parameters and without superclass, built with their primary constructor. The serialized properties are the properties with a backing field (minus the @JsonIgnore and @Transient ones), the JSON names can be set with @JsonProperty. The other classes are skipped (Jackson default serialization).

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override val supportedAnnotationTypes: Set<String>
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun getCompletions(element: Element?, annotation: AnnotationMirror?, member: ExecutableElement?, userText: String?): Iterable<out Completion?>?
Link copied to clipboard
open override fun getSupportedAnnotationTypes(): Set<String>
Link copied to clipboard
Link copied to clipboard
open fun init(processingEnv: ProcessingEnvironment?)
Link copied to clipboard
open override fun process(annotations: Set<TypeElement>, roundEnv: RoundEnvironment): Boolean