Represents a callable entity, such as a function or a property.
R
- return type of the callable.
- Inheritance
-
- Object
- KAnnotatedElement
- KCallable
- Implementers
- Available extensions
Properties
- extensionReceiverParameter → KParameter?
-
Available on KCallable, provided by the KCallableExtension extension
Returns a parameter representing the extension receiver instance needed to call this callable, ornull
if this callable is not an extension.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- instanceParameter → KParameter?
-
Available on KCallable, provided by the KCallableExtension extension
Returns a parameter representing thethis
instance needed to call this callable, ornull
if this callable is not a member of a class and thus doesn't take such parameter.no setter - isAbstract → Boolean
-
Returns
true
if this callable isabstract
.no setter - isAccessible → Boolean
-
Available on KCallable, provided by the KCallableExtension extension
Provides a way to suppress JVM access checks for a callable.no setter - isFinal → Boolean
-
Returns
true
if this callable isfinal
.no setter - isOpen → Boolean
-
Returns
true
if this callable isopen
.no setter - isSuspend → Boolean
-
Returns
true
if this is a suspending function.no setter -
members
→ Collection<
KCallable> -
Annotations which are present on this element.
no setterinherited
- name → String
-
The name of this callable as it was declared in the source code.
no setter
-
parameters
→ List<
KParameter> -
Parameters required to make a call to this callable.
no setter
- returnType → KType
-
The type of values returned by this callable.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
typeParameters
→ List<
KTypeParameter> -
The list of type parameters of this callable.
no setter
-
valueParameters
→ List<
KParameter> -
Available on KCallable, provided by the KCallableExtension extension
Returns parameters of this callable, excluding thethis
instance and the extension receiver parameter.no setter - visibility → KVisibility?
-
Visibility of this callable, or
null
if its visibility cannot be represented in Kotlin.no setter
Methods
-
call(
Array< Any?> args) → R Function() - Calls this callable with the specified list of arguments and returns the result.
-
callBy(
Map< KParameter, Any?> args) → R Function() - Calls this callable with the specified mapping of parameters to arguments and returns the result.
-
callSuspend<
R> (Array< Any?> args) → R -
Available on KCallable, provided by the KCallableExtension extension
Calls a callable in the current suspend context. -
callSuspendBy<
R> (Map< KParameter, Any?> args) → R -
Available on KCallable, provided by the KCallableExtension extension
Calls a callable in the current suspend context. -
findParameterByName(
String name) → KParameter? -
Available on KCallable, provided by the KCallableExtension extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited