CreationShakeMethod

class CreationShakeMethod(val prj: CreationShakeProject, val pkg: CreationShakePackage?, val clazz: CreationShakeClass?, val parentScope: CreationShakeScope, val name: String, val body: CreationShakeCode?, val isStatic: Boolean, val isFinal: Boolean, val isAbstract: Boolean, val isSynchronized: Boolean, val isStrict: Boolean, val isPrivate: Boolean, val isProtected: Boolean, val isPublic: Boolean, val isNative: Boolean, val isOperator: Boolean, val returnType: CreationShakeType, val parameters: List<CreationShakeParameter>, val expanding: ShakeType?) : CreationShakeInvokable, ShakeMethod(source)

Constructors

Link copied to clipboard
constructor(prj: CreationShakeProject, pkg: CreationShakePackage?, clazz: CreationShakeClass?, parentScope: CreationShakeScope, name: String, body: CreationShakeCode?, isStatic: Boolean, isFinal: Boolean, isAbstract: Boolean, isSynchronized: Boolean, isStrict: Boolean, isPrivate: Boolean, isProtected: Boolean, isPublic: Boolean, isNative: Boolean, isOperator: Boolean, returnType: CreationShakeType, parameters: List<CreationShakeParameter>, expanding: ShakeType?)

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 invokable entity, containing the executable code.

Link copied to clipboard
open override val clazz: CreationShakeClass?

The class this method is in. This is null if the method is not within a class

Link copied to clipboard
open override val expanding: ShakeType?

The type this method expands (int.toString() -> String)

Link copied to clipboard
open override val isAbstract: Boolean

Is this method abstract?

Link copied to clipboard
open override val isFinal: Boolean

Is this method final?

Link copied to clipboard
open override val isNative: Boolean

Is this method native?

Link copied to clipboard
open override val isOperator: Boolean

Is this method an operator?

Link copied to clipboard
open override val isPrivate: Boolean

Is this method private?

Link copied to clipboard
open override val isProtected: Boolean

Is this method protected?

Link copied to clipboard
open override val isPublic: Boolean

Is this method public?

Link copied to clipboard
open override val isStatic: Boolean

Is this method static?

Link copied to clipboard
open override val isStrict: Boolean

Is this method strict?

Link copied to clipboard
open override val isSynchronized: Boolean

Is this method synchronized?

Link copied to clipboard
open override val name: String

The (simple) name of this method

Link copied to clipboard

A list of parameters that the invokable entity accepts.

Link copied to clipboard

The parameter types of this method

Link copied to clipboard
open override val parentScope: CreationShakeScope

The parent scope of this method. The method's scope will extend this scope.

Link copied to clipboard
open override val pkg: CreationShakePackage?

The package this method is in. Also holds the package if this method is in a class

Link copied to clipboard
open override val prj: CreationShakeProject

The project this method is in. This also keeps the project if this method is inside of a package or class

Link copied to clipboard
open override val qualifiedName: String

The fully qualified name of the invokable entity.

Link copied to clipboard

The qualified signature of this method, including the package, class, parameter types and the return type. This must be unique and can be threaded as a unique identifier.

Link copied to clipboard
open override val returnType: CreationShakeType

The return type of the invokable entity.

Link copied to clipboard
open override val scope: CreationShakeScope

The body of this method

Link copied to clipboard
open val signature: String

The signature of this method, including the parameter types and the return type. Does not include the package or class.

Functions

Link copied to clipboard
open override fun phase3()

Processor phase 3 action

Link copied to clipboard
open override fun phase4()

Processor phase 4 action

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

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