Kotlin反射库定义了KDeclarationContainer哪个Represents an entity which may contain declarations of any other entities, such as a class or a package.
KDeclarationContainer
Represents an entity which may contain declarations of any other entities, such as a class or a package.
this::class返回KClass,扩展KDeclarationContainer,但我如何得到父KDeclarationContainer(a KPackage?)
this::class
KClass
KPackage
kotlin kotlin-reflect
kotlin ×1
kotlin-reflect ×1