I have a method inside a class:
class Foo {
fun bar()
}
And I want to pass the method bar
to a third-party library method that takes a java.lang.reflect.Method
argument:
fun baz(Method method)
How do I do that? Ideally is there some function call f(Foo::bar)
that takes a method reference and returns a Method
?
Aucun commentaire:
Enregistrer un commentaire