I have a Java method that takes a parameter Method:
void doSomethingWithMethod(Method m) {
...
}
And I have a Kotlin class that contains a function:
class MyClass {
fun myFunction() : List<Something> {
...
}
}
I can get a link to a function using MyClass::myFunction, but I see no way to pass it to a method doSomethingWithMethod. Is there an equivalent property .javathat can be applied to a Kotlin class reference to get the Java equivalent?
If not, is there a workaround?
source
share