I’m trying to inspect data class at compile time.
What I need is to get a list of properties (filter them from other non-properties methods) in order to be able to pass them to the constructor.
But as annotation processor see Kotlin data class just like ordinary java class, I cannot properly determine properties and the order of them.
I tried to extract some information from generated @kotlin.Metadata annotation (with kotlin-reflect) library, but was unable to get ordered properties with corresponding java types.
Is there any guide on how to work with kotlin code FROM Annotation processor?
Are there any resources on how to use kotlin.Metadata annotation in compile time (and not runtime)?