Skip to content

달빛약속 / core/mod / IfStatement

Class: IfStatement

Extends

Indexable

[key: string]: unknown

Constructors

new IfStatement()

new IfStatement(cases, tokens): IfStatement

Parameters

cases

Case[]

tokens

Token[]

Returns

IfStatement

Overrides

Executable.constructor

Defined in

core/node/IfStatement.ts:17

Properties

cases

cases: Case[]

Defined in

core/node/IfStatement.ts:17


tokens

tokens: Token[]

Inherited from

Executable.tokens

Defined in

core/node/IfStatement.ts:17


friendlyName

static friendlyName: string = '조건문(만약)'

Overrides

Executable.friendlyName

Defined in

core/node/IfStatement.ts:15

Methods

execute()

execute(scope): Promise<void>

Parameters

scope

Scope

Returns

Promise<void>

Overrides

Executable.execute

Defined in

core/node/IfStatement.ts:21


shouldStop()

shouldStop(condition, scope): Promise<boolean>

Parameters

condition

Evaluable<ValueType>

scope

Scope

Returns

Promise<boolean>

Defined in

core/node/IfStatement.ts:31


toJSON()

toJSON(): object

Returns

object

Inherited from

Executable.toJSON

Defined in

core/node/base.ts:13


toPrint()

toPrint(): string

Returns

string

Inherited from

Executable.toPrint

Defined in

core/node/base.ts:32