Lawtext core references / core/src/diff/lawDiff / ComparableEL
Class: ComparableEL
Defined in: core/src/diff/lawDiff.ts:152 (opens in a new tab)
JsonEL: a tree structure that represents simplified structure of XML. A JsonEL object corresponds to an XML element.
Implements
Constructors
new ComparableEL()
new ComparableEL(
el,parent?,openIndex?):ComparableEL
Defined in: core/src/diff/lawDiff.ts:162 (opens in a new tab)
Parameters
el
string | JsonEL
parent?
openIndex?
number = 0
Returns
Properties
attr
attr:
object={}
Defined in: core/src/diff/lawDiff.ts:154 (opens in a new tab)
The attributes of the element
Index Signature
[key: string]: undefined | string
Implementation of
children
children:
ComparableEL[] =[]
Defined in: core/src/diff/lawDiff.ts:155 (opens in a new tab)
The children of the element
Implementation of
closeIndex
closeIndex:
number
Defined in: core/src/diff/lawDiff.ts:157 (opens in a new tab)
nextIndex
nextIndex:
number
Defined in: core/src/diff/lawDiff.ts:158 (opens in a new tab)
openIndex
openIndex:
number
Defined in: core/src/diff/lawDiff.ts:156 (opens in a new tab)
parent?
optionalparent:ComparableEL
Defined in: core/src/diff/lawDiff.ts:159 (opens in a new tab)
tag
tag:
string=""
Defined in: core/src/diff/lawDiff.ts:153 (opens in a new tab)
The tag name of the element
Implementation of
textCache
textCache:
null|string=null
Defined in: core/src/diff/lawDiff.ts:160 (opens in a new tab)
Accessors
text
Get Signature
get text():
string
Defined in: core/src/diff/lawDiff.ts:187 (opens in a new tab)
Returns
string
Methods
allList()
allList():
IterableIterator<[ComparableEL,TagType]>
Defined in: core/src/diff/lawDiff.ts:194 (opens in a new tab)
Returns
IterableIterator<[ComparableEL, TagType]>
getXPath()
getXPath():
string
Defined in: core/src/diff/lawDiff.ts:206 (opens in a new tab)
Returns
string