Skip to content

routier-collection


routier-collection / core/src / VariableBuilder

Class: VariableBuilder ​

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

Extends ​

Constructors ​

Constructor ​

new VariableBuilder(declaration, name?, parentIndent?, parent?): VariableBuilder

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

Parameters ​

declaration ​

string

name? ​

string

parentIndent? ​

string = ""

parent? ​

Block

Returns ​

VariableBuilder

Overrides ​

Block.constructor

Properties ​

name ​

readonly name: string

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

Inherited from ​

Block.name

Accessors ​

getValue ​

Get Signature ​

get getValue(): string | Block

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

Returns ​

string | Block

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


value() ​

value(value): this

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

Parameters ​

value ​

string

Returns ​

this


object() ​

object(options?): ObjectBuilder

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

Parameters ​

options? ​

CreateBlockOptions

Returns ​

ObjectBuilder


array() ​

array(accessor, options?): ArrayBuilder

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

Parameters ​

accessor ​

string

options? ​

CreateBlockOptions

Returns ​

ArrayBuilder


toString() ​

toString(): string

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

Returns ​

string

Overrides ​

Block.toString

Released under the MIT License.