ShakeInvokable

Represents an invokable entity in the Shake language, such as a function or a method. Invokable entities can be called with parameters and return a value of a specified type.

Since

0.1.0

Inheritors

Properties

Link copied to clipboard
abstract val body: ShakeCode?

The body of the invokable entity, containing the executable code.

Link copied to clipboard

A list of parameters that the invokable entity accepts.

Link copied to clipboard
abstract val qualifiedName: String

The fully qualified name of the invokable entity.

Link copied to clipboard
abstract val returnType: ShakeType

The return type of the invokable entity.

Functions

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

Converts the invokable entity to a JSON representation. Useful for serialization or debugging purposes.