To get a list of all the constructor properties of...
# reflect
v
To get a list of all the constructor properties of a Class, I either need reflection (with kotlin-reflect), or do it at compile time with Kapt or KSP. Is that right? I have a KType and I'd like to know its constructor properties - at runtime I've got
(kType.classifier as KClass<*>).constructors
and that requires kotlin-reflect. Any alternatives?
1