org.ooverkommelig.jvmreflect.retrievabledefinitions.DefinitionProperty.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ooverkommelig-jvm-reflect Show documentation
Show all versions of ooverkommelig-jvm-reflect Show documentation
Manageable dependency injection for Kotlin.
package org.ooverkommelig.jvmreflect.retrievabledefinitions
import org.ooverkommelig.Definition
import kotlin.reflect.KProperty
internal data class DefinitionProperty(val property: KProperty>, val returnsSameObjectForAllRetrievals: Boolean) {
val type = property.returnType.arguments[0].type ?: throw IllegalStateException()
}