Lines Matching refs:next
343 //If the logically-adjacent next node can be removed
359 Node next = currentNode.getNextSibling();
360 while (next != null) {
361 //If the logically-adjacent next node can be removed
365 if ((next.getNodeType() == Node.TEXT_NODE)
366 || (next.getNodeType() == Node.CDATA_SECTION_NODE)
367 || (next.getNodeType() == Node.ENTITY_REFERENCE_NODE && hasTextOnlyChildren(next))) {
368 parent.removeChild(next);
369 next = currentNode;
373 next = next.getNextSibling();
450 //If the previous sibling was text or cdatasection move to next
471 * or CDATASection node and its next siblings are neither a replaceable
475 * node any its next sibling was not or was an EntityReference that did not
486 Node next = node.getNextSibling();
487 while (next != null) {
489 short type = next.getNodeType();
494 Node firstChild = next.getFirstChild();
521 //If the first child was replaceable text and next
533 //If the previous sibling was text or cdatasection move to next
535 //If the next sibling was anything but text or
541 next = next.getNextSibling();