Lines Matching defs:Node

16 goog.provide('cvox.SemanticTree.Node');
36 * @type {Node}
40 /** @type {cvox.SemanticTree.Node} */
46 * @param {number} id Node id.
49 cvox.SemanticTree.Node = function(id) {
56 /** @type {cvox.SemanticTree.Node} */
68 /** @type {!Array.<cvox.SemanticTree.Node>} */
76 * @type {!Array.<cvox.SemanticTree.Node>}
85 * @param {function(cvox.SemanticTree.Node): boolean} pred The predicate.
86 * @return {!Array.<cvox.SemanticTree.Node>} The nodes in the tree for which the
89 cvox.SemanticTree.Node.prototype.querySelectorAll = function(pred) {
104 * @return {Node} The XML representation of the tree.
121 * @return {Node} The XML representation of the node.
123 cvox.SemanticTree.Node.prototype.xml = function(xml, brief) {
127 * @param {!Array.<!cvox.SemanticTree.Node>} nodes A list of nodes.
128 * @return {Node} An XML representation of the node list.
190 // Node with content.
216 cvox.SemanticTree.Node.prototype.toString = function(brief) {
226 * @param {Node} node The XML node.
229 cvox.SemanticTree.Node.prototype.xmlAttributes_ = function(node) {
239 * @return {cvox.SemanticTree.Node} The newly created node.
243 return new cvox.SemanticTree.Node(this.idCounter_++);
249 * @param {!cvox.SemanticTree.Node} oldNode The node to be replaced.
250 * @param {!cvox.SemanticTree.Node} newNode The new node.
268 cvox.SemanticTree.Node.prototype.updateContent_ = function(content) {
286 * @param {Array.<Node>} mmlNodes List of MathML nodes.
289 cvox.SemanticTree.Node.prototype.addMathmlNodes_ = function(mmlNodes) {
300 * @param {Array.<Node>} mmlNodes List of MathML nodes.
303 cvox.SemanticTree.Node.prototype.removeMathmlNodes_ = function(mmlNodes) {
317 * @param {cvox.SemanticTree.Node} child The new child.
320 cvox.SemanticTree.Node.prototype.appendChild_ = function(child) {
329 * @param {!cvox.SemanticTree.Node} oldNode The node to be replaced.
330 * @param {!cvox.SemanticTree.Node} newNode The new node.
333 cvox.SemanticTree.Node.prototype.replaceChild_ = function(oldNode, newNode) {
355 * @param {cvox.SemanticTree.Node} node The new content node.
358 cvox.SemanticTree.Node.prototype.appendContentNode_ = function(node) {
369 * @param {cvox.SemanticTree.Node} node The content node to be removed.
372 cvox.SemanticTree.Node.prototype.removeContentNode_ = function(node) {
386 * @return {!cvox.SemanticTree.Node} The root of the new tree.
497 * @return {!Array.<cvox.SemanticTree.Node>} The list of resulting semantic
511 * @param {Node} mml The MathML tree.
512 * @return {!cvox.SemanticTree.Node} The new node.
524 * @return {!cvox.SemanticTree.Node} The new node.
536 * @param {Node} mml The MathML tree.
537 * @return {!cvox.SemanticTree.Node} The new node.
552 * @param {!Array.<cvox.SemanticTree.Node>} children The child nodes.
553 * @param {!Array.<cvox.SemanticTree.Node>} contentNodes The content Nodes.
555 * @return {!cvox.SemanticTree.Node} The new node.
580 * @param {!Array.<!cvox.SemanticTree.Node>} nodes The operands.
581 * @return {!cvox.SemanticTree.Node} The new branch node.
599 * @param {!Array.<cvox.SemanticTree.Node>} children The operands.
600 * @param {!cvox.SemanticTree.Node} opNode The operator.
601 * @return {!cvox.SemanticTree.Node} The new branch node.
614 * @param {!cvox.SemanticTree.Node} inner The inner node.
615 * @param {!Array.<cvox.SemanticTree.Node>} nodeList List of nodes.
617 * @return {!cvox.SemanticTree.Node} The new branch node.
637 * @param {!cvox.SemanticTree.Node} node The inner node.
638 * @param {!Array.<cvox.SemanticTree.Node>} prefixes Prefix operators
640 * @return {!cvox.SemanticTree.Node} The new branch node.
664 * @param {!cvox.SemanticTree.Node} node The inner node.
665 * @param {!Array.<cvox.SemanticTree.Node>} postfixes Postfix operators from
667 * @return {!cvox.SemanticTree.Node} The new branch node.
686 * @param {!Array.<cvox.SemanticTree.Node>} nodes The list of nodes.
687 * @return {!cvox.SemanticTree.Node} The root node of the syntax tree.
705 * @param {!Array.<!cvox.SemanticTree.Node>} nodes The list of nodes.
706 * @return {!cvox.SemanticTree.Node} The root node of the syntax tree.
735 * @param {!Array.<!cvox.SemanticTree.Node>} nodes The list of nodes.
736 * @return {!cvox.SemanticTree.Node} The root node of the syntax tree.
765 /** @type {!Array.<!cvox.SemanticTree.Node>} */ (split.head)),
777 * @param {!Array.<cvox.SemanticTree.Node>} nodes The list of nodes.
778 * @param {!cvox.SemanticTree.Node} root Initial tree.
779 * @param {!cvox.SemanticTree.Node} lastop Last operator that has not been
781 * @param {Array.<cvox.SemanticTree.Node>=} prefixes Operator nodes that will
783 * @return {!cvox.SemanticTree.Node} The root node of the syntax tree.
797 /** @type {!cvox.SemanticTree.Node} */ (root.childNodes.pop()),
827 * @param {!cvox.SemanticTree.Node} root The operator tree.
828 * @param {!cvox.SemanticTree.Node} op The operator node.
829 * @param {!cvox.SemanticTree.Node} node The node to be added.
830 * @return {!cvox.SemanticTree.Node} The modified root node.
850 * @param {!cvox.SemanticTree.Node} root The root node.
851 * @param {!cvox.SemanticTree.Node} op The operator node.
852 * @param {!cvox.SemanticTree.Node} node The operand node to be added.
853 * @return {!cvox.SemanticTree.Node} The modified root node.
871 * @param {!cvox.SemanticTree.Node} root The old root node.
872 * @param {!cvox.SemanticTree.Node} op The operator node.
873 * @param {!cvox.SemanticTree.Node} node The operand node to be added.
874 * @return {!cvox.SemanticTree.Node} The new root node.
885 * @param {!cvox.SemanticTree.Node} root The root node.
886 * @param {!cvox.SemanticTree.Node} op The operator node.
887 * @param {!cvox.SemanticTree.Node} node The operand node to be added.
902 /** @type {!cvox.SemanticTree.Node} */
921 * @param {!Array.<!cvox.SemanticTree.Node>} nodes The list of nodes.
922 * @return {!Array.<!cvox.SemanticTree.Node>} The new list of nodes.
937 * @param {!Array.<cvox.SemanticTree.Node>} fences FIFO queue of fence nodes.
938 * @param {!Array.<Array.<cvox.SemanticTree.Node>>} content FIFO queue content
940 * @param {!Array.<cvox.SemanticTree.Node>} openStack LIFO stack of open fences.
941 * @param {!Array.<!Array.<cvox.SemanticTree.Node>>} contentStack LIFO stack of
943 * @return {!Array.<cvox.SemanticTree.Node>} A list of nodes with all fenced
1060 * @param {!Array.<!cvox.SemanticTree.Node>} fences A list of neutral fences.
1061 * @param {!Array.<!Array.<cvox.SemanticTree.Node>>} content Intermediate
1063 * @return {!Array.<cvox.SemanticTree.Node>} List of node with fully fenced
1100 * @param {!cvox.SemanticTree.Node} leftFence The left fence.
1101 * @param {!cvox.SemanticTree.Node} rightFence The right fence.
1102 * @param {!Array.<cvox.SemanticTree.Node>} midFences A list of intermediate
1104 * @param {!Array.<!Array.<cvox.SemanticTree.Node>>} content Intermediate
1107 * @return {!Array.<!Array.<cvox.SemanticTree.Node>>} List of content nodes
1143 * @param {cvox.SemanticTree.Node} fence Fence.
1164 * @param {cvox.SemanticTree.Node} ofence Opening fence.
1165 * @param {cvox.SemanticTree.Node} cfence Closing fence.
1166 * @param {!Array.<cvox.SemanticTree.Node>} content The content
1168 * @return {!cvox.SemanticTree.Node} The new node.
1187 * @param {!Array.<cvox.SemanticTree.Node>} nodes The list of nodes.
1188 * @return {!Array.<cvox.SemanticTree.Node>} The new list of nodes.
1222 * @param {!Array.<!cvox.SemanticTree.Node>} nodes List of all nodes separated
1224 * @param {!Array.<!cvox.SemanticTree.Node>} punctuations List of all separating
1226 * @return {!cvox.SemanticTree.Node}
1251 * @param {!Array.<!cvox.SemanticTree.Node>} children The children of the
1253 * @return {!cvox.SemanticTree.Node} The newly created limit node.
1334 * @param {!Array.<cvox.SemanticTree.Node>} restNodes The remainder list of
1336 * @param {!Array.<cvox.SemanticTree.Node>=} result The result node list.
1337 * @return {!Array.<!cvox.SemanticTree.Node>} The fully processed list.
1346 var firstNode = /** @type {!cvox.SemanticTree.Node} */ (restNodes.shift());
1362 * @param {!cvox.SemanticTree.Node} funcNode The node to be classified.
1363 * @param {!Array.<cvox.SemanticTree.Node>} restNodes The remainder list of
1409 * @param {cvox.SemanticTree.Node} funcNode The node whose role is to be
1424 * @param {!cvox.SemanticTree.Node} func A function node.
1425 * @param {!Array.<cvox.SemanticTree.Node>} rest List of nodes to choose
1428 * @return {!Array.<!cvox.SemanticTree.Node>} The function and the remainder of
1444 func, /** @type {!cvox.SemanticTree.Node} */ (rest.shift()));
1472 func, /** @type {!cvox.SemanticTree.Node} */ (rest.shift()));
1485 * @param {!Array.<cvox.SemanticTree.Node>} nodes List of nodes to take
1487 * @param {Array.<cvox.SemanticTree.Node>=} args List of integral arguments.
1488 * @return {{integrand: !Array.<cvox.SemanticTree.Node>,
1489 * intvar: cvox.SemanticTree.Node,
1490 * rest: !Array.<cvox.SemanticTree.Node>}}
1522 * @param {!cvox.SemanticTree.Node} func The function operator.
1523 * @param {!cvox.SemanticTree.Node} arg The argument.
1524 * @return {!cvox.SemanticTree.Node} The new function node.
1541 * @param {!cvox.SemanticTree.Node} bigOp The big operator.
1542 * @param {!cvox.SemanticTree.Node} arg The argument.
1543 * @return {!cvox.SemanticTree.Node} The new big operator node.
1557 * @param {!cvox.SemanticTree.Node} integral The integral operator.
1558 * @param {cvox.SemanticTree.Node} integrand The integrand.
1559 * @param {cvox.SemanticTree.Node} intvar The integral variable.
1560 * @return {!cvox.SemanticTree.Node} The new integral node.
1577 * @param {!cvox.SemanticTree.Node} node A semantic node of type fenced.
1608 * @param {cvox.SemanticTree.Node} node A semantic node.
1620 * @param {cvox.SemanticTree.Node} firstNode A semantic node.
1621 * @param {cvox.SemanticTree.Node} secondNode The direct neighbour of first
1622 * Node.
1637 * @param {cvox.SemanticTree.Node} node A semantic node.
1655 * @param {cvox.SemanticTree.Node} node A semantic node.
1667 * @param {!Array.<cvox.SemanticTree.Node>} nodes List of nodes to rewrite.
1668 * @return {!Array.<cvox.SemanticTree.Node>} The new list of nodes.
1689 table, /** @type {!cvox.SemanticTree.Node} */ (prevNodes.pop()));
1700 * @param {cvox.SemanticTree.Node} node A node.
1713 * @param {cvox.SemanticTree.Node} node A node.
1727 * @param {!cvox.SemanticTree.Node} node The fenced node to be rewritten.
1728 * @return {!cvox.SemanticTree.Node} The matrix or vector node.
1747 * @param {!cvox.SemanticTree.Node} table A table node.
1748 * @param {!Array.<cvox.SemanticTree.Node>} prevNodes A list of previous nodes.
1761 * @param {!cvox.SemanticTree.Node} table The table containing the cases.
1762 * @param {!cvox.SemanticTree.Node} openFence The left delimiter of the case
1764 * @return {!cvox.SemanticTree.Node} The cases node.
1786 * @param {!cvox.SemanticTree.Node} table A table node.
1801 * @param {!cvox.SemanticTree.Node} table The node to be rewritten a multiline.
1814 * @param {!cvox.SemanticTree.Node} row The row to convert.
1832 * @param {!cvox.SemanticTree.Node} row The row to be updated.
1855 * @param {Array.<cvox.SemanticTree.Node>} nodes A list of nodes.
1856 * @param {!function(cvox.SemanticTree.Node): boolean} pred Predicate for the
1859 * @return {{head: !Array.<cvox.SemanticTree.Node>,
1860 * div: cvox.SemanticTree.Node,
1861 * tail: !Array.<cvox.SemanticTree.Node>}} The split list.
1892 * @param {!Array.<!cvox.SemanticTree.Node>} nodes A list of nodes.
1893 * @param {!function(cvox.SemanticTree.Node): boolean} pred Predicate for the
1895 * @return {{rel: !Array.<cvox.SemanticTree.Node>,
1896 * comp: !Array.<!Array.<cvox.SemanticTree.Node>>}}
1925 * @return {function(cvox.SemanticTree.Node): boolean} The predicate.