FunctionParameter

data class FunctionParameter<T : Any>(val name: String, val type: KClass<T>, val index: Int, val isOptional: Boolean = false, val isInjected: Boolean = false, val isNullable: Boolean = false)

A declared Function parameter.

Parameters

name

name of the parameter

type

expected input value type

index

index of the parameter in the function signature

isOptional

whether the corresponding argument in a function call can be omitted

isInjected

whether the corresponding argument in a function call is automatically injected and is not to be supplied by the caller.

isNullable

whether the parameter accepts null values. When true, com.quarkdown.core.function.value.NoneValue arguments are accepted and converted to Kotlin's null at invocation time.

T

input type of the parameter

Constructors

Link copied to clipboard
constructor(name: String, type: KClass<T>, index: Int, isOptional: Boolean = false, isInjected: Boolean = false, isNullable: Boolean = false)

Properties

Link copied to clipboard
val index: Int
Link copied to clipboard
val isInjected: Boolean = false
Link copied to clipboard
val isNullable: Boolean = false
Link copied to clipboard
val isOptional: Boolean = false
Link copied to clipboard
Link copied to clipboard
val type: KClass<T>