getThis

abstract fun getThis(): ShakeAssignable?(source)

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

Return

The 'this' assignable entity if it exists, or null otherwise.


abstract fun getThis(name: String): ShakeAssignable?(source)

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

Return

The field or method if found, or null if not found.

Parameters

name

The name of the field or method to retrieve from the 'this' object.