interface KFunction<out R> : KCallable<R>, Function<R>
Represents a function with introspection capabilities.
true
if this function is external
. See the Kotlin language documentation for more information.
true
if this function is infix
. See the Kotlin language documentation for more information.
true
if this function is inline
. See the Kotlin language documentation for more information.
true
if this function is operator
. See the Kotlin language documentation for more information.
Returns a Java Constructor instance corresponding to the given Kotlin function, or null
if this function is not a constructor or cannot be represented by a Java Constructor.
Calls a callable in the current suspend context. If the callable is not a suspend function, behaves as KCallable.call. Otherwise, calls the suspend function with current continuation.
Calls a callable in the current suspend context. If the callable is not a suspend function, behaves as KCallable.callBy. Otherwise, calls the suspend function with current continuation.
Returns true if this element is annotated with an annotation of type T.
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.
© 2010–2019 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.reflect/-k-function/index.html