DynamicValue

data class DynamicValue(val unwrappedValue: Any?) : InputValue<Any?> , OutputValue<Any?>

A Value whose type has not been yet determined.

  • This is more commonly used as an InputValue to represent a value written by the user that does not have a specific type yet.

  • It is also used as an OutputValue by functions such as the stdlib .function, which returns general content that can be used as any type, depending on the needs.

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)

See also

Constructors

Link copied to clipboard
constructor(unwrappedValue: Any?)

Properties

Link copied to clipboard
open override val unwrappedValue: Any?

Functions

Link copied to clipboard
open override fun <T> accept(visitor: ExpressionVisitor<T>): T

Accepts a visitor.

open override fun <O> accept(visitor: OutputValueVisitor<O>): O
Link copied to clipboard

Chains two expressions together, which is used in ComposedExpressions.

Link copied to clipboard