KoFunctionTypeDeclarationProvider

Provides access to function type declarations, including details about parameters and return types.

Inheritors

Properties

Link copied to clipboard
abstract val numParameters: Int

The number of parameters for the function type.

Link copied to clipboard
abstract val numParameterTypes: Int

The number of parameters for the function type.

Link copied to clipboard

Represents the parameters of the function type.

Link copied to clipboard

Represents the parameters of the function type.

Link copied to clipboard

Represents the return type of the function type.

Functions

Link copied to clipboard
abstract fun countParameters(predicate: (KoParameterDeclaration) -> Boolean): Int

Counts the number of parameters that match the given predicate.

Link copied to clipboard
abstract fun countParameterTypes(predicate: (KoParameterDeclaration) -> Boolean): Int

Counts the number of parameter types that match the given predicate.

Link copied to clipboard

Checks if all parameters match the given predicate.

Link copied to clipboard

Checks if all parameter types match the given predicate.

Link copied to clipboard
abstract fun hasParameter(predicate: (KoParameterDeclaration) -> Boolean): Boolean

Checks if any parameter matches the given predicate.

Link copied to clipboard

Checks if any parameter type matches the given predicate.

Link copied to clipboard
abstract fun hasReturnType(predicate: (KoTypeDeclaration) -> Boolean): Boolean

Checks if the return type matches the given predicate.

Link copied to clipboard
abstract fun hasReturnTypeOf(kClass: KClass<*>): Boolean

Checks if the return type matches the specified class.