ShakeParameter

Represents a parameter in the Shake language. Parameters are used in functions or constructors and can be assigned values.

Since

0.1.0

Inheritors

Properties

Link copied to clipboard
abstract val actualType: ShakeType

The actual type of the assignable entity.

Link copied to clipboard
abstract val actualValue: ShakeValue?

The actual value of the assignable entity.

Link copied to clipboard
abstract val name: String

The name of the parameter.

Link copied to clipboard
abstract override val type: ShakeType

The type of the parameter.

Link copied to clipboard
open val uniqueName: String

The unique name of the parameter, typically used internally. By default, it is prefixed with "param_" followed by the parameter's name.

Functions

Link copied to clipboard

Performs addition assignment on this entity's type.

Link copied to clipboard
open fun assignType(other: ShakeType, scope: ShakeScope): ShakeType?

Assigns a type to this entity.

Link copied to clipboard

Handles the type after decrement operation.

Link copied to clipboard

Handles the type before decrement operation.

Link copied to clipboard

Performs division assignment on this entity's type.

Link copied to clipboard

Handles the type after increment operation.

Link copied to clipboard

Handles the type before increment operation.

Link copied to clipboard
open fun modulusAssignType(other: ShakeType, scope: ShakeScope): ShakeType?

Performs modulus assignment on this entity's type.

Link copied to clipboard

Performs multiplication assignment on this entity's type.

Link copied to clipboard
open fun powerAssignType(other: ShakeType, scope: ShakeScope): ShakeType?

Performs power assignment on this entity's type.

Link copied to clipboard

Performs subtraction assignment on this entity's type.

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

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