@kismet.ts/parsers / Exports / TextNodeParser

Class: TextNodeParser<T>

Type parameters

NameType
Textends boolean = true

Hierarchy

  • BaseTextParser<T>

    TextNodeParser

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new TextNodeParser<T>(items, options?)

Type parameters

NameType
Textends boolean = true

Parameters

NameType
itemsSequenceItemType[]
options?TextParserOptions<T>

Overrides

BaseTextParser<T&gt;.constructor

Defined in

text/node.ts:23open in new window

Properties

manager

Protected manager: InputTextManager

Inherited from

BaseTextParser.manager

Defined in

text/internals/baseParser.ts:8open in new window


options

Protected Optional options: Partial<TextParserOptions<T>>

Inherited from

BaseTextParser.options

Defined in

text/internals/baseParser.ts:10open in new window

Methods

convert

Protected convert<R>(item): undefined | If<T, string, R>

Type parameters

NameType
Rextends BaseItem<R>

Parameters

NameType
itemundefined | R

Returns

undefined | If<T, string, R>

Inherited from

BaseTextParser.convert

Defined in

text/internals/baseParser.ts:16open in new window


createSequence

Protected createSequence(): Sequence

Returns

Sequence

Inherited from

BaseTextParser.createSequence

Defined in

text/internals/baseParser.ts:22open in new window


isNodeInput

isNodeInput(input): boolean

Deprecated

Parameters

NameType
inputstring

Returns

boolean

Defined in

text/node.ts:54open in new window


parseNode

parseNode(input): undefined | If<T, string, BaseSequenceItem>

Deprecated

Parameters

NameType
inputstring

Returns

undefined | If<T, string, BaseSequenceItem>

Defined in

text/node.ts:77open in new window


parseNodeName

parseNodeName(name): undefined | If<T, string, BaseSequenceItem | SequenceAction | SequenceCondition | SequenceVariable | SequenceEvent<{}>>

Create an item from a single name.

Parameters

NameTypeDescription
namestringThe class name of the item. Name can be SeqAct_MyAction or MyAction.

Returns

undefined | If<T, string, BaseSequenceItem | SequenceAction | SequenceCondition | SequenceVariable | SequenceEvent<{}>>

Defined in

text/node.ts:68open in new window


parseRawItem

Protected parseRawItem(input): BaseSequenceItem

Parameters

NameType
inputstring

Returns

BaseSequenceItem

Inherited from

BaseTextParser.parseRawItem

Defined in

text/internals/baseParser.ts:29open in new window


parseRawNode

parseRawNode(input): undefined | If<T, string, BaseSequenceItem>

Parameters

NameType
inputstring

Returns

undefined | If<T, string, BaseSequenceItem>

Defined in

text/node.ts:72open in new window


isNodeInput

Static isNodeInput(input): boolean

Parameters

NameType
inputstring

Returns

boolean

Defined in

text/node.ts:58open in new window


parseNodeClassFile

Static parseNodeClassFile(fileName, archetype, content): undefined | { defaultProperties: [string, string][] = defaultOptions; item: BaseSequenceItem ; type: undefined | NodeType }

Parameters

NameType
fileNamestring
archetypestring
contentstring

Returns

undefined | { defaultProperties: [string, string][] = defaultOptions; item: BaseSequenceItem ; type: undefined | NodeType }

Defined in

text/node.ts:27open in new window