ResultFieldUpdateHandler

class ResultFieldUpdateHandler(val updateCondition: (value: Any?, field: Field) -> Boolean, updateAction: (host: KotlinKernelHost, value: Any?, field: Field) -> VariableName?) : FieldHandlerEx

Constructors

Link copied to clipboard
constructor(updateCondition: (value: Any?, field: Field) -> Boolean, updateAction: (host: KotlinKernelHost, value: Any?, field: Field) -> VariableName?)

Properties

Link copied to clipboard

Execution to handle conversion. Should not throw if accepts returns true Called for each property for which accepts returned true

Link copied to clipboard
val updateCondition: (value: Any?, field: Field) -> Boolean

Functions

Link copied to clipboard
open override fun accepts(value: Any?, property: KProperty<*>): Boolean
open override fun accepts(value: Any?, fieldInfo: FieldInfo): Boolean

Tells if this handler accepts the given property Called for each variable in the cells executed by users, except those names are starting from TEMP_PROPERTY_PREFIX or those that have been already consumed by another handler

Link copied to clipboard
open fun finalize(host: KotlinKernelHost)

Called one time per cell after all the variables have been processed, and only if this handler accepted at least one variable