DataClassModel

class DataClassModel(val className: ClassName, val typeParameterCount: Int, val internal: Boolean, val open: Boolean, val dataSuperclass: ClassName?, val properties: List<DataPropertyModel>)

A class whose property paths are generated (MyClass_, MyClass_Col, MyClass_Map).

This model is independent of the processing API (KSP or KAPT): each processor builds it from its own symbols, and PropertyPathGenerator generates the code.

Parameters

className

the (raw) class name of the source class

typeParameterCount

the number of type parameters of the source class

internal

true if the generated classes are internal

open

true if the source class is open, abstract or sealed (the generated classes are then open)

dataSuperclass

the (raw) class name of the superclass, if its property paths are generated too

properties

the properties declared by the source class (not the inherited ones)

Constructors

Link copied to clipboard
constructor(className: ClassName, typeParameterCount: Int, internal: Boolean, open: Boolean, dataSuperclass: ClassName?, properties: List<DataPropertyModel>)

Properties

Link copied to clipboard
val className: ClassName
Link copied to clipboard
val dataSuperclass: ClassName?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard