Library
core
src
node
container
classes
Container

Lawtext core referencesDocs


Lawtext core references / core/src/node/container / Container

Class: Container

Constructors

new Container()

new Container(options): Container

Parameters

options: ContainerOptions

Returns

Container

Defined in

core/src/node/container/index.ts:76 (opens in a new tab)

Properties

allSentenceEnvs

allSentenceEnvs: SentenceEnv[]

Defined in

core/src/node/container/index.ts:74 (opens in a new tab)


children

children: Container[] = []

Defined in

core/src/node/container/index.ts:71 (opens in a new tab)


containerID

readonly containerID: string

Defined in

core/src/node/container/index.ts:63 (opens in a new tab)


el

readonly el: EL

Defined in

core/src/node/container/index.ts:61 (opens in a new tab)


name

readonly name: null | string

Defined in

core/src/node/container/index.ts:65 (opens in a new tab)


num

readonly num: null | string

Defined in

core/src/node/container/index.ts:66 (opens in a new tab)


parent

parent: null | Container = null

Defined in

core/src/node/container/index.ts:70 (opens in a new tab)


sentenceRange

sentenceRange: [number, number]

Defined in

core/src/node/container/index.ts:68 (opens in a new tab)


subChildren

subChildren: Container[] = []

Defined in

core/src/node/container/index.ts:73 (opens in a new tab)


subParent

subParent: null | Container = null

Defined in

core/src/node/container/index.ts:72 (opens in a new tab)


type

readonly type: ContainerType

Defined in

core/src/node/container/index.ts:64 (opens in a new tab)

Methods

addChild()

addChild(child): Container

Parameters

child: Container

Returns

Container

Defined in

core/src/node/container/index.ts:105 (opens in a new tab)


ancestorChildren()

ancestorChildren(func): IterableIterator<Container>

Parameters

func

Returns

IterableIterator<Container>

Defined in

core/src/node/container/index.ts:144 (opens in a new tab)


ancestorChildrenSub()

ancestorChildrenSub(func): IterableIterator<Container>

Parameters

func

Returns

IterableIterator<Container>

Defined in

core/src/node/container/index.ts:193 (opens in a new tab)


closest()

closest(func): null | Container

Parameters

func

Returns

null | Container

Defined in

core/src/node/container/index.ts:124 (opens in a new tab)


closestSub()

closestSub(func): null | Container

Parameters

func

Returns

null | Container

Defined in

core/src/node/container/index.ts:179 (opens in a new tab)


find()

find(func?, cut?): null | Container

Parameters

func?

cut?

Returns

null | Container

Defined in

core/src/node/container/index.ts:224 (opens in a new tab)


findAll()

findAll(func?, cut?): IterableIterator<Container>

Parameters

func?

cut?

Returns

IterableIterator<Container>

Defined in

core/src/node/container/index.ts:231 (opens in a new tab)


findAncestorChildren()

findAncestorChildren(func): null | Container

Parameters

func

Returns

null | Container

Defined in

core/src/node/container/index.ts:140 (opens in a new tab)


findAncestorChildrenSub()

findAncestorChildrenSub(func): null | Container

Parameters

func

Returns

null | Container

Defined in

core/src/node/container/index.ts:189 (opens in a new tab)


iterate()

iterate(func?, cut?): IterableIterator<Container>

Parameters

func?

cut?

Returns

IterableIterator<Container>

Defined in

core/src/node/container/index.ts:242 (opens in a new tab)


iterateReverse()

iterateReverse(func?, cut?): IterableIterator<Container>

Parameters

func?

cut?

Returns

IterableIterator<Container>

Defined in

core/src/node/container/index.ts:251 (opens in a new tab)


linealAscendant()

linealAscendant(func?): Container[]

Parameters

func?

Returns

Container[]

Defined in

core/src/node/container/index.ts:134 (opens in a new tab)


next()

next(func): null | Container

Parameters

func

Returns

null | Container

Defined in

core/src/node/container/index.ts:150 (opens in a new tab)


nextAll()

nextAll(func): IterableIterator<Container>

Parameters

func

Returns

IterableIterator<Container>

Defined in

core/src/node/container/index.ts:154 (opens in a new tab)


nextAllSub()

nextAllSub(func): IterableIterator<Container>

Parameters

func

Returns

IterableIterator<Container>

Defined in

core/src/node/container/index.ts:203 (opens in a new tab)


nextSub()

nextSub(func): null | Container

Parameters

func

Returns

null | Container

Defined in

core/src/node/container/index.ts:199 (opens in a new tab)


parents()

parents(func?): IterableIterator<Container>

Parameters

func?

Returns

IterableIterator<Container>

Defined in

core/src/node/container/index.ts:128 (opens in a new tab)


parentsSub()

parentsSub(func): IterableIterator<Container>

Parameters

func

Returns

IterableIterator<Container>

Defined in

core/src/node/container/index.ts:183 (opens in a new tab)


prev()

prev(func): null | Container

Parameters

func

Returns

null | Container

Defined in

core/src/node/container/index.ts:162 (opens in a new tab)


prevAll()

prevAll(func): IterableIterator<Container>

Parameters

func

Returns

IterableIterator<Container>

Defined in

core/src/node/container/index.ts:166 (opens in a new tab)


prevAllSub()

prevAllSub(func): IterableIterator<Container>

Parameters

func

Returns

IterableIterator<Container>

Defined in

core/src/node/container/index.ts:216 (opens in a new tab)


prevSub()

prevSub(func): null | Container

Parameters

func

Returns

null | Container

Defined in

core/src/node/container/index.ts:212 (opens in a new tab)


thisOrClosest()

thisOrClosest(func): null | Container

Parameters

func

Returns

null | Container

Defined in

core/src/node/container/index.ts:119 (opens in a new tab)


thisOrClosestSub()

thisOrClosestSub(func): null | Container

Parameters

func

Returns

null | Container

Defined in

core/src/node/container/index.ts:174 (opens in a new tab)