Function

interface Function<T : OutputValue<*>>

A function that can be called from a Quarkdown source via a FunctionCall.

Parameters

T

expected output type

Inheritors

Properties

Link copied to clipboard
abstract val invoke: (ArgumentBindings) -> T

Function that maps the input arguments into an output value. Arguments and parameters compliance in terms of matching types and count is not checked here. The ArgumentBindings allow looking up argument values by their parameter.

Link copied to clipboard
abstract val name: String

Function name.

Link copied to clipboard

Declared parameters.

Link copied to clipboard

Validators that check the validity of a function call towards this function. If a condition is not met during the validation, an exception should be thrown.

Functions

Link copied to clipboard
fun Function<*>.signatureAsString(includeName: Boolean = true): String