KCallable
Represents a callable entity, such as a function or a property.
Since Kotlin
1.2Represents a callable entity, such as a function or a property.
Since Kotlin
1.0Parameters
return type of the callable.
return type of the callable.
return type of the callable.
Functions
Calls this callable with the specified list of arguments and returns the result. Throws an exception if the number of specified arguments is not equal to the size of parameters, or if their types do not match the types of the parameters.
Calls this callable with the specified mapping of parameters to arguments and returns the result. If a parameter is not found in the mapping and is not optional (as per KParameter.isOptional), or its type does not match the type of the provided value, an exception is thrown.
Properties
Inheritors
Extensions
Returns a parameter representing the extension receiver instance needed to call this callable, or null if this callable is not an extension.
Returns an annotation of the given type on this element.
Returns the parameter of this callable with the given name, or null if there's no such parameter.
Returns a parameter representing the this instance needed to call this callable, or null if this callable is not a member of a class and thus doesn't take such parameter.
Provides a way to suppress JVM access checks for a callable.
Returns parameters of this callable, excluding the this instance and the extension receiver parameter.