Package-level declarations
Types
Link copied to clipboard
data class FunctionCall<T : OutputValue<*>>(val function: Function<T>, val arguments: List<FunctionCallArgument>, val context: Context? = null, val sourceNode: FunctionCallNode? = null, var onComplete: (T) -> Unit = { }) : Expression
A call to a declared Function. This is an Expression as its output can be used as an input for another function call.
Link copied to clipboard
data class FunctionCallArgument(val expression: Expression, val name: String? = null, val isBody: Boolean = false)
An argument of a FunctionCall.
Link copied to clipboard
class FunctionCallNodeExpander(context: MutableContext, errorHandler: PipelineErrorHandler, outputMapperFactory: OutputValueVisitorFactory<Node> = NodeOutputValueVisitorFactory(context))
Given a FunctionCallNode from the AST, this expander resolves its referenced function, executes it and maps its result to a visible output in the final document.
Link copied to clipboard
data class UncheckedFunctionCall<T : OutputValue<*>>(val name: String, val resolve: () -> FunctionCall<T>?) : Expression
Wrapper/delegate for a FunctionCall whose referenced function may or may not have been resolved. If the result of resolve is null
, the function wasn't resolved, and the delegate methods throw UnresolvedReferenceException, which is then caught by upper layers.