Skip to content

yaksok.tsDocs


yaksok.ts / IfStatement

Class: IfStatement

Extends

Constructors

new IfStatement()

ts
new IfStatement(cases): IfStatement

Parameters

cases: Case[]

Returns

IfStatement

Overrides

Executable.constructor

Defined in

src/node/IfStatement.ts:16

Properties

cases

ts
cases: Case[];

Defined in

src/node/IfStatement.ts:16


position?

ts
optional position: Position;

Inherited from

Executable.position

Defined in

src/node/base.ts:16


friendlyName

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

Overrides

Executable.friendlyName

Defined in

src/node/IfStatement.ts:14

Methods

execute()

ts
execute(scope, _callFrame): void

Parameters

scope: Scope

_callFrame: CallFrame

Returns

void

Overrides

Executable.execute

Defined in

src/node/IfStatement.ts:20


shouldStop()

ts
shouldStop(
   condition, 
   scope, 
   _callFrame): boolean

Parameters

condition: Evaluable

scope: Scope

_callFrame: CallFrame

Returns

boolean

Defined in

src/node/IfStatement.ts:32


toJSON()

ts
toJSON(): object

Returns

object

Inherited from

Executable.toJSON

Defined in

src/node/base.ts:19


toPrint()

ts
toPrint(): string

Returns

string

Inherited from

Executable.toPrint

Defined in

src/node/base.ts:36