ShakeCast

Represents a cast operation in the Shake language. This interface is used for casting a value from one type to another.

Since

0.1.0

Properties

Link copied to clipboard
abstract val castTarget: ShakeType

The target type to which the value is being cast.

Link copied to clipboard
abstract val project: ShakeProject

The project to which this value belongs.

Link copied to clipboard
abstract val type: ShakeType

The type of this value.

Link copied to clipboard
abstract val value: ShakeValue

The value to be cast.

Functions

Link copied to clipboard
abstract fun toJson(): Map<String, Any?>

Converts this value to a JSON representation. Useful for serialization, debugging, or for interfacing with external systems.