ShakeMethod

A ShakeMethod is a method in a ShakeClass or ShakePackage

See also

Inheritors

Properties

Link copied to clipboard
abstract val body: ShakeCode?

The body of the invokable entity, containing the executable code.

Link copied to clipboard
abstract val clazz: ShakeClass?

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

Link copied to clipboard
abstract val expanding: ShakeType?

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

Link copied to clipboard
abstract val isAbstract: Boolean

Is this method abstract?

Link copied to clipboard
abstract val isFinal: Boolean

Is this method final?

Link copied to clipboard
abstract val isNative: Boolean

Is this method native?

Link copied to clipboard
abstract val isOperator: Boolean

Is this method an operator?

Link copied to clipboard
abstract val isPrivate: Boolean

Is this method private?

Link copied to clipboard
abstract val isProtected: Boolean

Is this method protected?

Link copied to clipboard
abstract val isPublic: Boolean

Is this method public?

Link copied to clipboard
abstract val isStatic: Boolean

Is this method static?

Link copied to clipboard
abstract val isStrict: Boolean

Is this method strict?

Link copied to clipboard
abstract val isSynchronized: Boolean

Is this method synchronized?

Link copied to clipboard
abstract 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
abstract val parentScope: ShakeScope

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

Link copied to clipboard
abstract val pkg: ShakePackage?

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

Link copied to clipboard
abstract val prj: ShakeProject

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 qualified name of this method, including the package and class. This is not unique, as it does not contain the signature!

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
abstract override val returnType: ShakeType

The return type of this method

Link copied to clipboard
abstract val scope: ShakeScope

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
abstract fun phase3()

Processor phase 3 action

Link copied to clipboard
abstract fun phase4()

Processor phase 4 action

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

The json representation of this method