KMongoAnnotationProcessor

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

KAPT (JSR 269) version of the kmongo-dsl-ksp processor: generates the type-safe property paths (MyClass_, MyClass_Col, MyClass_Map) for the Kotlin classes annotated with @Data (or listed in a @DataRegistry).

The generated code is the same as the code generated by kmongo-dsl-ksp (the generation is shared). Use it with the kapt goal of the kotlin-maven-plugin (KSP has no official Maven plugin) or with the kotlin-kapt Gradle plugin - KSP is recommended with Gradle.

The Kotlin properties of the classes are read from their Kotlin metadata (kotlin-metadata-jvm).

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