CreationShakeProject

class CreationShakeProject(processor: ShakeASTProcessor, val subpackages: MutableList<CreationShakePackage> = mutableListOf()) : ShakeProject(source)

Constructors

Link copied to clipboard
constructor(processor: ShakeASTProcessor, subpackages: MutableList<CreationShakePackage> = mutableListOf())

Types

Link copied to clipboard
class ClassRequirement(val name: String, val then: (CreationShakeClass) -> Unit)
Link copied to clipboard
object Companion
Link copied to clipboard
inner class Cores

Properties

Link copied to clipboard
Link copied to clipboard
open override val projectScope: CreationShakeScope

The scope of the project.

Link copied to clipboard

A list of subpackages contained within this project.

Functions

Link copied to clipboard
fun addScope(creationShakeScope: CreationShakeScope)
Link copied to clipboard
fun finish()
Link copied to clipboard
open override fun getClass(name: Array<String>): CreationShakeClass?

Retrieves a class by an array of names.

open override fun getClass(clz: String): CreationShakeClass?

Retrieves a class by its full name.

open override fun getClass(name: List<String>): CreationShakeClass?

Retrieves a class by a path of names.

Link copied to clipboard
open override fun getField(name: Array<String>): CreationShakeField?

Retrieves a field by an array of names.

open override fun getField(name: String): CreationShakeField?

Retrieves a field by its full name.

open override fun getField(name: List<String>): CreationShakeField?

Retrieves a field by a path of names.

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

Retrieves functions by an array of names.

open override fun getFunctions(name: String): List<CreationShakeMethod>

Retrieves functions by their full name.

open override fun getFunctions(name: List<String>): List<CreationShakeMethod>

Retrieves functions by a path of names.

Link copied to clipboard
open override fun getPackage(name: Array<String>): CreationShakePackage?
open override fun getPackage(name: List<String>): CreationShakePackage?

Retrieves a subpackage by a path of names.

open override fun getPackage(name: String): CreationShakePackage?

Retrieves a subpackage by name.

Link copied to clipboard
open override fun phase1()

Executes the first phase of project processing.

Link copied to clipboard
open override fun phase2()

Executes the second phase of project processing.

Link copied to clipboard
open override fun phase3()

Executes the third phase of project processing.

Link copied to clipboard
open override fun phase4()

Executes the fourth phase of project processing.

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

Converts this project to a JSON representation. Useful for serialization or debugging purposes.

Link copied to clipboard
open fun toJsonString(format: Boolean = false): String

Converts this project to a JSON string representation.