FunctionCall

constructor(function: Function<T>, arguments: List<FunctionCallArgument>, context: Context? = null, sourceNode: FunctionCallNode? = null, onComplete: (T) -> Unit = { })

Parameters

function

referenced function to call

arguments

arguments of the call

context

optional context this call lies in. This value can be injected to library functions that demand it via the @Injected annotation

sourceNode

FunctionCallNode that generated this call, if there is any. Like context, this value can be injected. It is null if the call is standalone and was not generated by a node.

onComplete

function to be called when the function is executed, with the output of the call as an argument

T

expected output type of the function