Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
abstract override val parent: CreationShakeScope?

The parent scope of this scope, if it exists. Null if this is a top-level scope.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract val uniqueName: String

The unique name of this scope, used for identification purposes.

Functions

Link copied to clipboard
abstract override fun getClass(name: String): CreationShakeClass?

Retrieves a class by its name within this scope.

fun getClass(name: String, then: (CreationShakeClass) -> Unit)
Link copied to clipboard
abstract override fun getClasses(name: String): List<CreationShakeClass>

Retrieves all classes with the specified name within this scope.

Link copied to clipboard
abstract override fun getField(name: String): CreationShakeAssignable?

Retrieves a field (variable) by its name within this scope.

Link copied to clipboard
abstract override fun getFields(name: String): List<CreationShakeAssignable>

Retrieves all fields (variables) with the specified name within this scope.

Link copied to clipboard
abstract override fun getFunctions(name: String): List<CreationShakeMethod>

Retrieves all functions with the specified name within this scope.

Link copied to clipboard
open override fun getInvokable(name: String): List<CreationShakeInvokable>

Retrieves all invokable entities (like functions or methods) with the specified name within this scope.

Link copied to clipboard
abstract fun getSuper(): ShakeAssignable?

Retrieves the 'super' reference within this scope. 'Super' refers to the superclass object in object-oriented contexts.

abstract fun getSuper(name: String): ShakeAssignable?

Retrieves a field or method named 'name' from the 'super' object within this scope.

Link copied to clipboard
abstract fun getThis(): ShakeAssignable?

Retrieves the 'this' reference within this scope. 'This' refers to the current object in object-oriented contexts.

abstract fun getThis(name: String): ShakeAssignable?

Retrieves a field or method named 'name' from the 'this' object within this scope.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun setClass(klass: CreationShakeClass)
Link copied to clipboard
abstract fun setField(value: CreationShakeDeclaration)
Link copied to clipboard
abstract fun setFunctions(function: CreationShakeMethod)
Link copied to clipboard
open override fun use(name: String)

Indicates that a name is being used in this scope. This method can be used for tracking purposes, such as identifying unused variables.