Class: KAGFile

KAGFile(filename, isTempFile)

new KAGFile(filename, isTempFile)

KS file. 新しいタグを追加する時はKagFile.lines.push
Parameters:
Name Type Description
filename string
isTempFile boolean If true, this will not be added to KAGFiles (for thing like callback)

Members

labels

Properties:
Type Description
Array.<Tag>

lines

Properties:
Type Description
Array.<Tag>

Methods

(static) restore(obj) → {KAGFile|Promise.<KAGFile>}

Parameters:
Name Type Description
obj KAGFile.Restorable
Returns:
Type
KAGFile | Promise.<KAGFile>

basename() → {string}

Returns:
拡張子のないファイルネーム
Type
string

getLabelTag() → {Tag}

Returns:
ラベルのタグ、見つからない場合はnullです。
Type
Tag

line() → {Tag}

Parameters:
Type Description
number
Returns:
Type
Tag

toRestorable() → {KAGFile.Restorable}

Returns:
Type
KAGFile.Restorable

Type Definitions

Restorable

Type:
  • object
Implements: