Lawtext core references / core/src/node/cst/line / ParagraphItemLine
Class: ParagraphItemLine<TTag>
Defined in: core/src/node/cst/line.ts:483 (opens in a new tab)
A first line of a paragraph, item, and subitem. Please see the source code of $paragraphItemLine for the detailed syntax.
Extends
WithControlsLine<PIT>
Type Parameters
• TTag extends typeof paragraphItemTags[number] | null = typeof paragraphItemTags[number] | null
Constructors
new ParagraphItemLine()
new ParagraphItemLine<
TTag>(options):ParagraphItemLine<TTag>
Defined in: core/src/node/cst/line.ts:489 (opens in a new tab)
Parameters
options
ParagraphItemLineOptions<TTag>
Returns
ParagraphItemLine<TTag>
Overrides
WithControlsLine<LineType.PIT>.constructor
Properties
controls
controls:
Controls
Defined in: core/src/node/cst/line.ts:485 (opens in a new tab)
Overrides
WithControlsLine.controls
indentTexts
indentTexts:
string[]
Defined in: core/src/node/cst/line.ts:73 (opens in a new tab)
Inherited from
WithControlsLine.indentTexts
lineEndText
lineEndText:
string
Defined in: core/src/node/cst/line.ts:50 (opens in a new tab)
Inherited from
WithControlsLine.lineEndText
mainTag
mainTag:
TTag
Defined in: core/src/node/cst/line.ts:484 (opens in a new tab)
midSpace
midSpace:
string
Defined in: core/src/node/cst/line.ts:487 (opens in a new tab)
range
range:
null| [number,number]
Defined in: core/src/node/cst/line.ts:49 (opens in a new tab)
Inherited from
WithControlsLine.range
sentencesArray
sentencesArray:
SentencesArray
Defined in: core/src/node/cst/line.ts:488 (opens in a new tab)
title
title:
string
Defined in: core/src/node/cst/line.ts:486 (opens in a new tab)
type
type:
PIT
Defined in: core/src/node/cst/line.ts:48 (opens in a new tab)
Inherited from
WithControlsLine.type
Accessors
controlsEndPos
Get Signature
get controlsEndPos():
null|number
Defined in: core/src/node/cst/line.ts:124 (opens in a new tab)
Returns
null | number
Inherited from
WithControlsLine.controlsEndPos
indentsEndPos
Get Signature
get indentsEndPos():
null|number
Defined in: core/src/node/cst/line.ts:93 (opens in a new tab)
Returns
null | number
Inherited from
WithControlsLine.indentsEndPos
midSpaceRange
Get Signature
get midSpaceRange():
null| [number,number]
Defined in: core/src/node/cst/line.ts:503 (opens in a new tab)
Returns
null | [number, number]
sentencesArrayRange
Get Signature
get sentencesArrayRange():
null| [number,number]
Defined in: core/src/node/cst/line.ts:508 (opens in a new tab)
Returns
null | [number, number]
titleRange
Get Signature
get titleRange():
null| [number,number]
Defined in: core/src/node/cst/line.ts:499 (opens in a new tab)
Returns
null | [number, number]
Methods
controlsRangeTexts()
controlsRangeTexts(): [
null| [number,number],string,string][]
Defined in: core/src/node/cst/line.ts:116 (opens in a new tab)
Returns
[null | [number, number], string, string][]
Inherited from
WithControlsLine.controlsRangeTexts
indentRangeTexts()
indentRangeTexts(): [
null| [number,number],string,string][]
Defined in: core/src/node/cst/line.ts:80 (opens in a new tab)
Returns
[null | [number, number], string, string][]
Inherited from
WithControlsLine.indentRangeTexts
lineEndTextRange()
lineEndTextRange():
null| [number,number]
Defined in: core/src/node/cst/line.ts:62 (opens in a new tab)
Returns
null | [number, number]
Inherited from
WithControlsLine.lineEndTextRange
rangeTexts()
rangeTexts(): [
null| [number,number],string,string][]
Defined in: core/src/node/cst/line.ts:523 (opens in a new tab)
Returns
[null | [number, number], string, string][]
Overrides
WithControlsLine.rangeTexts
text()
text():
string
Defined in: core/src/node/cst/line.ts:58 (opens in a new tab)
Returns
string
Inherited from
WithControlsLine.text
withTag()
withTag<
TNewTag>(tag):ParagraphItemLine<TNewTag>
Defined in: core/src/node/cst/line.ts:533 (opens in a new tab)
Type Parameters
• TNewTag extends null | "Paragraph" | "Item" | "Subitem1" | "Subitem2" | "Subitem3" | "Subitem4" | "Subitem5" | "Subitem6" | "Subitem7" | "Subitem8" | "Subitem9" | "Subitem10"
Parameters
tag
TNewTag
Returns
ParagraphItemLine<TNewTag>