Kotlin-Java type conversion
Hi! Is there any instrument to get Kotlin types from Java PsiType? For example, I have java type:
java.util.Set<entitypack.Entity>
it kotlin it should be
kotlin.collections.Set<entitypack.Entity<*>>
How could I automatically get the second from the first?
Please sign in to leave a comment.
I found org.jetbrains.kotlin.j2k.TypeConverter, but it erases package name of the Entity class.
What exactly are you doing with org.jetbrains.kotlin.j2k.TypeConverter?
Hi!
ktClass is not a java psi element, but as I understand, it does not matter for TypeConverter.
Also, there is any analog of PsiSubstitutor for kotlin?