Join Slack
Powered by
<@U0MMYM2A3>: see <https://github.com/kohesive/kl...
# reflect
a
apatrida
03/29/2016, 11:36 AM
@aaverin
: see
https://github.com/kohesive/klutter/blob/master/reflect-core-jdk6/src/main/kotlin/uy/klutter/reflect/TypeInfo.kt#L22-L41
for Type from any Class, you can easily modify it for KClass and KType. there are other helpers in the libs for those.
https://github.com/kohesive/klutter/blob/master/reflect-core-jdk6/src/main/kotlin/uy/klutter/reflect/Types.kt
https://github.com/kohesive/klutter/blob/master/reflect-full-jdk6/src/main/kotlin/uy/klutter/reflect/full/Types.kt
This is almost there:
https://github.com/kohesive/klutter/blob/master/reflect-full-jdk6/src/main/kotlin/uy/klutter/reflect/full/Types.kt#L43
Open in Slack
Previous
Next