routier-collection / core/src / IfBuilder
Class: IfBuilder
Defined in: core/src/codegen/blocks.ts:527
Extends
Constructors
Constructor
new IfBuilder(
condition,name?,parentIndent?,parent?):IfBuilder
Defined in: core/src/codegen/blocks.ts:530
Parameters
condition
string
name?
string
parentIndent?
string = ""
parent?
Returns
IfBuilder
Overrides
Properties
name
readonlyname:string
Defined in: core/src/codegen/blocks.ts:11
Inherited from
Methods
indexOf()
indexOf(
name):number
Defined in: core/src/codegen/blocks.ts:22
Parameters
name
string
Returns
number
Inherited from
getOrDefault()
getOrDefault<
T>(name):T
Defined in: core/src/codegen/blocks.ts:26
Type Parameters
T
T extends Block
Parameters
name
string
Returns
T
Inherited from
get()
get<
T>(name):T
Defined in: core/src/codegen/blocks.ts:54
Type Parameters
T
T extends Block
Parameters
name
string
Returns
T
Inherited from
has()
has(
name):boolean
Defined in: core/src/codegen/blocks.ts:64
Parameters
name
string
Returns
boolean
Inherited from
if()
if(
condition,options?):IfBuilder
Defined in: core/src/codegen/blocks.ts:85
Parameters
condition
string
options?
Returns
IfBuilder
Inherited from
raw()
raw(
raw,options?):RawBuilder
Defined in: core/src/codegen/blocks.ts:96
Parameters
raw
string
options?
Returns
Inherited from
function()
function(
name?,options?):FunctionBuilder
Defined in: core/src/codegen/blocks.ts:102
Parameters
name?
string
options?
Returns
Inherited from
factory()
factory(
name?,options?):FunctionFactoryBuilder
Defined in: core/src/codegen/blocks.ts:108
Parameters
name?
string
options?
Returns
Inherited from
variable()
variable(
declaration,options?):VariableBuilder
Defined in: core/src/codegen/blocks.ts:114
Parameters
declaration
string
options?
Returns
Inherited from
assign()
assign(
variableName,options?):AssignmentBuilder
Defined in: core/src/codegen/blocks.ts:120
Parameters
variableName
string
options?
Returns
Inherited from
object()
object(
options?):ObjectBuilder
Defined in: core/src/codegen/blocks.ts:126
Parameters
options?
Returns
Inherited from
slot()
slot(
name):SlotBlock
Defined in: core/src/codegen/blocks.ts:132
Parameters
name
string
Returns
Inherited from
array()
array(
accessor,options?):ArrayBuilder
Defined in: core/src/codegen/blocks.ts:138
Parameters
accessor
string
options?
Returns
Inherited from
appendBody()
appendBody(
line):this
Defined in: core/src/codegen/blocks.ts:535
Parameters
line
string
Returns
this
unshiftBody()
unshiftBody(
line):this
Defined in: core/src/codegen/blocks.ts:540
Parameters
line
string
Returns
this
toString()
toString():
string
Defined in: core/src/codegen/blocks.ts:557
Returns
string