@kismet.ts/parsers / Exports / TextNodeParser
Class: TextNodeParser<T>
Type parameters
Name | Type |
---|---|
T | extends boolean = true |
Hierarchy
BaseTextParser
<T
>↳
TextNodeParser
Table of contents
Constructors
Properties
Methods
- convert
- createSequence
- isNodeInput
- parseNode
- parseNodeName
- parseRawItem
- parseRawNode
- isNodeInput
- parseNodeClassFile
Constructors
constructor
• new TextNodeParser<T
>(items
, options?
)
Type parameters
Name | Type |
---|---|
T | extends boolean = true |
Parameters
Name | Type |
---|---|
items | SequenceItemType [] |
options? | TextParserOptions <T > |
Overrides
BaseTextParser<T>.constructor
Defined in
Properties
manager
• Protected
manager: InputTextManager
Inherited from
BaseTextParser.manager
Defined in
text/internals/baseParser.ts:8
options
• Protected
Optional
options: Partial
<TextParserOptions
<T
>>
Inherited from
BaseTextParser.options
Defined in
text/internals/baseParser.ts:10
Methods
convert
▸ Protected
convert<R
>(item
): undefined
| If
<T
, string
, R
>
Type parameters
Name | Type |
---|---|
R | extends BaseItem <R > |
Parameters
Name | Type |
---|---|
item | undefined | R |
Returns
undefined
| If
<T
, string
, R
>
Inherited from
BaseTextParser.convert
Defined in
text/internals/baseParser.ts:16
createSequence
▸ Protected
createSequence(): Sequence
Returns
Sequence
Inherited from
BaseTextParser.createSequence
Defined in
text/internals/baseParser.ts:22
isNodeInput
▸ isNodeInput(input
): boolean
Deprecated
Parameters
Name | Type |
---|---|
input | string |
Returns
boolean
Defined in
parseNode
▸ parseNode(input
): undefined
| If
<T
, string
, BaseSequenceItem
>
Deprecated
Parameters
Name | Type |
---|---|
input | string |
Returns
undefined
| If
<T
, string
, BaseSequenceItem
>
Defined in
parseNodeName
▸ parseNodeName(name
): undefined
| If
<T
, string
, BaseSequenceItem
| SequenceAction
| SequenceCondition
| SequenceVariable
| SequenceEvent
<{}>>
Create an item from a single name.
Parameters
Name | Type | Description |
---|---|---|
name | string | The class name of the item. Name can be SeqAct_MyAction or MyAction . |
Returns
undefined
| If
<T
, string
, BaseSequenceItem
| SequenceAction
| SequenceCondition
| SequenceVariable
| SequenceEvent
<{}>>
Defined in
parseRawItem
▸ Protected
parseRawItem(input
): BaseSequenceItem
Parameters
Name | Type |
---|---|
input | string |
Returns
BaseSequenceItem
Inherited from
BaseTextParser.parseRawItem
Defined in
text/internals/baseParser.ts:29
parseRawNode
▸ parseRawNode(input
): undefined
| If
<T
, string
, BaseSequenceItem
>
Parameters
Name | Type |
---|---|
input | string |
Returns
undefined
| If
<T
, string
, BaseSequenceItem
>
Defined in
isNodeInput
▸ Static
isNodeInput(input
): boolean
Parameters
Name | Type |
---|---|
input | string |
Returns
boolean
Defined in
parseNodeClassFile
▸ Static
parseNodeClassFile(fileName
, archetype
, content
): undefined
| { defaultProperties
: [string
, string
][] = defaultOptions; item
: BaseSequenceItem
; type
: undefined
| NodeType
}
Parameters
Name | Type |
---|---|
fileName | string |
archetype | string |
content | string |
Returns
undefined
| { defaultProperties
: [string
, string
][] = defaultOptions; item
: BaseSequenceItem
; type
: undefined
| NodeType
}