Skip to content

routier-collection


routier-collection / core/src / ContainerBlock

Abstract Class: ContainerBlock

Defined in: core/src/codegen/blocks.ts:139

Extends

Extended by

Constructors

Constructor

new ContainerBlock(name?, parentIndent?, parent?): ContainerBlock

Defined in: core/src/codegen/blocks.ts:16

Parameters

name?

string

parentIndent?

string = ""

parent?

Block

Returns

ContainerBlock

Inherited from

Block.constructor

Properties

name

readonly name: string

Defined in: core/src/codegen/blocks.ts:11

Inherited from

Block.name

Methods

indexOf()

indexOf(name): number

Defined in: core/src/codegen/blocks.ts:22

Parameters

name

string

Returns

number

Inherited from

Block.indexOf


getLines()

getLines(): Line[]

Defined in: core/src/codegen/blocks.ts:26

Returns

Line[]

Inherited from

Block.getLines


getParent()

getParent(): Block

Defined in: core/src/codegen/blocks.ts:30

Returns

Block

Inherited from

Block.getParent


getIndent()

getIndent(): string

Defined in: core/src/codegen/blocks.ts:34

Returns

string

Inherited from

Block.getIndent


setLines()

setLines(lines): void

Defined in: core/src/codegen/blocks.ts:38

Parameters

lines

Line[]

Returns

void

Inherited from

Block.setLines


setParent()

setParent(block): void

Defined in: core/src/codegen/blocks.ts:42

Parameters

block

Block

Returns

void

Inherited from

Block.setParent


setIndent()

setIndent(indent): void

Defined in: core/src/codegen/blocks.ts:46

Parameters

indent

string

Returns

void

Inherited from

Block.setIndent


getOrDefault()

getOrDefault<T>(name): T

Defined in: core/src/codegen/blocks.ts:50

Type Parameters

T

T extends Block

Parameters

name

string

Returns

T

Inherited from

Block.getOrDefault


get()

get<T>(name): T

Defined in: core/src/codegen/blocks.ts:79

Type Parameters

T

T extends Block

Parameters

name

string

Returns

T

Inherited from

Block.get


has()

has(name): boolean

Defined in: core/src/codegen/blocks.ts:89

Parameters

name

string

Returns

boolean

Inherited from

Block.has


remove()

remove(name): void

Defined in: core/src/codegen/blocks.ts:93

Parameters

name

string

Returns

void

Inherited from

Block.remove


replace()

replace(name, line): void

Defined in: core/src/codegen/blocks.ts:97

Parameters

name

string

line

Block

Returns

void

Inherited from

Block.replace


toString()

abstract toString(): string

Defined in: core/src/codegen/blocks.ts:136

Returns

string

Inherited from

Block.toString


if()

if(condition, options?): IfBuilder

Defined in: core/src/codegen/blocks.ts:140

Parameters

condition

string

options?

CreateBlockOptions

Returns

IfBuilder


raw()

raw(raw, options?): RawBuilder

Defined in: core/src/codegen/blocks.ts:151

Parameters

raw

string

options?

CreateBlockOptions

Returns

RawBuilder


function()

function(name?, options?): FunctionBuilder

Defined in: core/src/codegen/blocks.ts:157

Parameters

name?

string

options?

CreateBlockOptions

Returns

FunctionBuilder


factory()

factory(name?, options?): FunctionFactoryBuilder

Defined in: core/src/codegen/blocks.ts:163

Parameters

name?

string

options?

CreateBlockOptions

Returns

FunctionFactoryBuilder


variable()

variable(declaration, options?): VariableBuilder

Defined in: core/src/codegen/blocks.ts:169

Parameters

declaration

string

options?

CreateBlockOptions

Returns

VariableBuilder


assign()

assign(variableName, options?): AssignmentBuilder

Defined in: core/src/codegen/blocks.ts:175

Parameters

variableName

string

options?

CreateBlockOptions

Returns

AssignmentBuilder


object()

object(options?): ObjectBuilder

Defined in: core/src/codegen/blocks.ts:181

Parameters

options?

CreateBlockOptions

Returns

ObjectBuilder


slot()

slot(name): SlotBlock

Defined in: core/src/codegen/blocks.ts:187

Parameters

name

string

Returns

SlotBlock


array()

array(accessor, options?): ArrayBuilder

Defined in: core/src/codegen/blocks.ts:193

Parameters

accessor

string

options?

CreateBlockOptions

Returns

ArrayBuilder

Released under the MIT License.