PropertyPathGenerator

Generates the type-safe property paths (MyClass_, MyClass_Col, MyClass_Map) of a DataClassModel.

Used by the kmongo-dsl-ksp (KSP) and kmongo-dsl-annotation-processor (KAPT) processors: both generate the same code.

Functions

Link copied to clipboard
fun generate(model: DataClassModel): FileSpec

Generates the file of the property paths of model.

Link copied to clipboard
fun generatedName(source: ClassName, suffix: String = ""): ClassName

The name of the generated class for the source class: Source_ + suffix (the simple name is used, even for nested classes).