CreationShakeParameter

class CreationShakeParameter(val project: CreationShakeProject, val name: String, val type: ShakeType, var actualValue: CreationShakeValue? = null, var actualType: ShakeType = type) : ShakeParameter, CreationShakeDeclaration(source)

Constructors

Link copied to clipboard
constructor(project: CreationShakeProject, name: String, type: ShakeType, actualValue: CreationShakeValue? = null, actualType: ShakeType = type)

Properties

Link copied to clipboard
open override var actualType: ShakeType

The actual type of the assignable entity.

Link copied to clipboard
open override var actualValue: CreationShakeValue?

The actual value of the assignable entity.

Link copied to clipboard
open override val name: String

The name of the parameter.

Link copied to clipboard
open override val project: CreationShakeProject
Link copied to clipboard
open override val qualifiedName: String

The fully qualified name of the declaration, including its scope and namespace.

Link copied to clipboard
open override val type: ShakeType

The type of the parameter.

Link copied to clipboard
open override 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
open override fun access(scope: CreationShakeScope): CreationShakeValue
Link copied to clipboard
open override fun additionAssignType(other: ShakeType, scope: ShakeScope): ShakeType?

Performs addition assignment on this entity's type.

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

Assigns a type to this entity.

Link copied to clipboard
Link copied to clipboard
open override fun decrementAfterType(scope: ShakeScope): ShakeType?

Handles the type after decrement operation.

Link copied to clipboard
open override fun decrementBeforeType(scope: ShakeScope): ShakeType?

Handles the type before decrement operation.

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

Performs division assignment on this entity's type.

Link copied to clipboard
open override fun incrementAfterType(scope: ShakeScope): ShakeType?

Handles the type after increment operation.

Link copied to clipboard
open override fun incrementBeforeType(scope: ShakeScope): ShakeType?

Handles the type before increment operation.

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

Performs modulus assignment on this entity's type.

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

Performs multiplication assignment on this entity's type.

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

Performs power assignment on this entity's type.

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

Performs subtraction assignment on this entity's type.

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

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

Link copied to clipboard
open override fun use(scope: CreationShakeScope): CreationShakeUsage