python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How to get only declared members (not inherited) with Kotlin Reflection?
Is there any way to get only the declared members of a class (not inherited) with Kotlin Reflection?
Something equivalent to getDeclaredMethods(), or ...Fields(), in Java, but for members and JVM fre...
Miguel Gamboa
Votes: 0
Answers: 1
Find all primitive memberProperties Kotlin Android
I want to find memberProperties that are not other classes I declared.
For example
data class X(val other: String)
data class Y(val str: String, val y: X?)
I want to filter() my Y::class.memberProper...
zaitsman
Votes: 0
Answers: 1
Hot to get the parameterless constructor through Kotlin Reflection API?
Given a domain class with a parameterless constructor, how do we get a reference to that constructor through the Reflection API?
Consider for example a Student data class, such as:
data class Student(...
Miguel Gamboa
Votes: 0
Answers: 1
Moshi: When is Reflection needed?
Currently using Moshi with Retrofit but need to look back as I noticed I am not implementing it right and confused when to add kotlin-reflect in the dependencies.
According to README
The reflection a...
Bitwise DEVS
Votes: 0
Answers: 0