Home Reference Source
public class | source

AbstractBlockBuilder

Extends:

AbstractService → AbstractBlockBuilder

Direct Subclass:

BlockBuilder

Method Summary

Public Methods
public

async getBlockInstance(blockType: String): AbstractBlock | null

Returns an AbstractBlock child class instance according to the nodeTypeName or an AbstractBlock as default.

Inherited Summary

From class AbstractService
public
public
public

checkDependencies(dependencies: *[])

public

getService(serviceName: *): *

public

hasService(serviceName: *): *

public

init()

Public Methods

public async getBlockInstance(blockType: String): AbstractBlock | null source

Returns an AbstractBlock child class instance according to the nodeTypeName or an AbstractBlock as default.

Comment out the default case if you don’t want a default block to be instantiated for each block.

Params:

NameTypeAttributeDescription
blockType String

Return:

AbstractBlock | null