DynamicValue

constructor(unwrappedValue: Any?, evaluationContext: Context? = null)

Parameters

unwrappedValue

either a raw/unprocessed representation of the wrapped value (e.g. the number 5 saved as the string "5") or simply an opaque wrapper for a generic value (e.g. a Node)

evaluationContext

optional context that preserves the scope in which this value was produced. When set (e.g. by a lambda parameter function), the output visitor uses this context instead of its own to parse raw string content, ensuring that deferred variable references resolve in the correct scope.