https://kotlinlang.org logo
#reflect
Title
# reflect
m

Martin Weigel

02/16/2018, 8:37 AM
Already asked this in #getting-started but might be better off here: Hi. I just can't seem to get Kotlin reflection working. I'm looking for a way to manipulate all String properties of an object. Is this possibble with Kotlin reflection?
d

diesieben07

02/16/2018, 8:56 AM
Copy code
val cls = obj::class
for (property in cls.memberProperties.filter { it.returnType == String::class }) {

}
m

Martin Weigel

02/16/2018, 12:42 PM
Thank you very much. This pointed me in the right direction.