CreationShakeConstructor

open class CreationShakeConstructor(val clazz: CreationShakeClass, val body: CreationShakeCode, val isStrict: Boolean, val isPrivate: Boolean, val isProtected: Boolean, val isPublic: Boolean, val isNative: Boolean, val name: String? = null, var parameters: List<CreationShakeParameter>) : ShakeConstructor(source)

Constructors

Link copied to clipboard
constructor(clazz: CreationShakeClass, body: CreationShakeCode, isStrict: Boolean, isPrivate: Boolean, isProtected: Boolean, isPublic: Boolean, isNative: Boolean, name: String? = null, parameters: List<CreationShakeParameter>)

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Properties

Link copied to clipboard
open override val body: CreationShakeCode

The body of the constructor. It may contain the initialization code.

Link copied to clipboard
open override val clazz: CreationShakeClass

The class which this constructor belongs to.

Link copied to clipboard
open override val isNative: Boolean

Indicates if the constructor is native, i.e., implemented in a language other than Shake.

Link copied to clipboard
open override val isPrivate: Boolean

Indicates if the constructor is private.

Link copied to clipboard
open override val isProtected: Boolean

Indicates if the constructor is protected.

Link copied to clipboard
open override val isPublic: Boolean

Indicates if the constructor is public.

Link copied to clipboard
open override val isStrict: Boolean

Indicates whether the constructor enforces strict type checking.

Link copied to clipboard
open override val name: String? = null

The name of the constructor. It may be null for anonymous constructors.

Link copied to clipboard

The parameters accepted by the constructor.

Link copied to clipboard

List of types of the parameters that this constructor accepts.

Link copied to clipboard

Fully qualified name of the constructor, combining the class's qualifier prefix and the constructor's name.

Link copied to clipboard

Fully qualified signature of the constructor, including the qualified name and parameter types.

Link copied to clipboard
open override val scope: CreationShakeScope

The scope in which the constructor is defined.

Link copied to clipboard
open val signature: String

Signature of the constructor, including its name and parameter types.

Functions

Link copied to clipboard
open override fun phase3()

Performs the third phase of the constructor processing.

Link copied to clipboard
open override fun phase4()

Performs the fourth phase of the constructor processing.

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

Converts the constructor to a JSON representation.