- , , :
val field = ABC::class.java.getDeclaredField("mPrivateField")
field.isAccessible = true
Int by Field # getInt , :
val it: ABC = TODO()
val value = field.getInt(it)
, :
private inline fun ABC.testExtFunc():Int {
return javaClass.getDeclaredField("mPrivateField").let {
it.isAccessible = true
val value = it.getInt(this)
return@let value;
}
}