92 lines
6.7 KiB
JavaScript
92 lines
6.7 KiB
JavaScript
|
"use strict";
|
||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
const plugins = require("./lik.plugins");
|
||
|
class Tree {
|
||
|
constructor() {
|
||
|
this.symbolTree = new plugins.symbolTree();
|
||
|
}
|
||
|
/**
|
||
|
*
|
||
|
* @param objectArg
|
||
|
*/
|
||
|
initialize(objectArg) {
|
||
|
return this.symbolTree.initialize(objectArg);
|
||
|
}
|
||
|
hasChildren(objectArg) {
|
||
|
return this.symbolTree.hasChildren(objectArg);
|
||
|
}
|
||
|
firstChild(objectArg) {
|
||
|
return this.symbolTree.firstChild(objectArg);
|
||
|
}
|
||
|
lastChild(objectArg) {
|
||
|
return this.symbolTree.lastChild(objectArg);
|
||
|
}
|
||
|
previousSibling(objectArg) {
|
||
|
return this.symbolTree.previousSibling(objectArg);
|
||
|
}
|
||
|
nextSibling(objectArg) {
|
||
|
return this.symbolTree.nextSibling(objectArg);
|
||
|
}
|
||
|
parent(objectArg) {
|
||
|
return this.symbolTree.parent(objectArg);
|
||
|
}
|
||
|
lastInclusiveDescendant(objectArg) {
|
||
|
return this.symbolTree.lastInclusiveDescendant(objectArg);
|
||
|
}
|
||
|
preceding(objectArg, optionsArg) {
|
||
|
return this.symbolTree.preceding(objectArg, optionsArg);
|
||
|
}
|
||
|
following(object, optionsArg) {
|
||
|
return this.symbolTree.following(object, optionsArg);
|
||
|
}
|
||
|
childrenToArray(parentArg, optionsArg) {
|
||
|
return this.symbolTree.childrenToArray(parent, optionsArg);
|
||
|
}
|
||
|
ancestorsToArray(objectArg, optionsArg) {
|
||
|
return this.symbolTree.ancestorsToArray(objectArg, optionsArg);
|
||
|
}
|
||
|
treeToArray(rootArg, optionsArg) {
|
||
|
return this.symbolTree.treeToArray(rootArg, optionsArg);
|
||
|
}
|
||
|
childrenIterator(parentArg, optionsArg) {
|
||
|
return this.symbolTree.childrenIterator(parentArg, optionsArg);
|
||
|
}
|
||
|
previousSiblingsIterator(objectArg) {
|
||
|
return this.symbolTree.previousSiblingsIterator(objectArg);
|
||
|
}
|
||
|
nextSiblingsIterator(objectArg) {
|
||
|
return this.symbolTree.nextSiblingsIterator();
|
||
|
}
|
||
|
ancestorsIterator(objectArg) {
|
||
|
this.symbolTree.ancestorsIterator();
|
||
|
}
|
||
|
treeIterator(rootArg, optionsArg) {
|
||
|
return this.symbolTree.treeIterator(rootArg);
|
||
|
}
|
||
|
index(childArg) {
|
||
|
return this.symbolTree.index(childArg);
|
||
|
}
|
||
|
childrenCount(parentArg) {
|
||
|
return this.symbolTree.childrenCount(parentArg);
|
||
|
}
|
||
|
compareTreePosition(leftArg, rightArg) {
|
||
|
return this.compareTreePosition(leftArg, rightArg);
|
||
|
}
|
||
|
remove(removeObjectArg) {
|
||
|
return this.symbolTree.remove(removeObjectArg);
|
||
|
}
|
||
|
insertBefore(referenceObjectArg, newObjectArg) {
|
||
|
return this.symbolTree.insertBefore(referenceObjectArg, newObjectArg);
|
||
|
}
|
||
|
insertAfter(referenceObject, newObjectArg) {
|
||
|
return this.symbolTree.insertAfter(referenceObject, newObjectArg);
|
||
|
}
|
||
|
prependChild(referenceObjectArg, newObjectArg) {
|
||
|
return this.symbolTree.prependChild(referenceObjectArg, newObjectArg);
|
||
|
}
|
||
|
appendChild(referenceObjectArg, newObjectArg) {
|
||
|
return this.symbolTree.appendChild(referenceObjectArg, newObjectArg);
|
||
|
}
|
||
|
}
|
||
|
exports.Tree = Tree;
|
||
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlrLnRyZWUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9saWsudHJlZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLHlDQUF3QztBQUV4QztJQUVFO1FBQ0UsSUFBSSxDQUFDLFVBQVUsR0FBRyxJQUFJLE9BQU8sQ0FBQyxVQUFVLEVBQUUsQ0FBQTtJQU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