reflect

kotlin-stdlib / kotlin.reflect.jvm / reflect
 

Platform and version requirements: JVM (1.0) 

@ExperimentalReflectionOnLambdas fun <R> Function<R>.reflect(): KFunction<R>? 
 This is an experimental API. Given a class for a compiled Kotlin lambda or a function expression, returns a KFunction instance providing introspection capabilities for that lambda or function expression and its parameters. Not all features are currently supported, in particular KCallable.call and KCallable.callBy will fail at the moment. 


    
{'path': 'public/docs/kotlin~1.7/api/latest/jvm/stdlib/kotlin.reflect.jvm/reflect.html', 'source': 'DevDocs.IO'}