Interface TreeWalker

All Known Implementing Classes:
TreeWalkerImpl

public interface TreeWalker
The nodes of a document subtree and a position within them.
  • Method Details

    • getCurrentNode

      Node getCurrentNode()

      getCurrentNode.

      Returns:
      a Node object.
    • setCurrentNode

      void setCurrentNode(Node currentNode)

      setCurrentNode.

      Parameters:
      currentNode - a Node object.
    • getFilter

      NodeFilter getFilter()

      getFilter.

      Returns:
      a NodeFilter object.
    • getRoot

      Node getRoot()

      getRoot.

      Returns:
      a Node object.
    • getWhatToShow

      int getWhatToShow()

      getWhatToShow.

      Returns:
      a double.
    • firstChild

      Node firstChild()

      firstChild.

      Returns:
      a Node object.
    • lastChild

      Node lastChild()

      lastChild.

      Returns:
      a Node object.
    • nextNode

      Node nextNode()

      nextNode.

      Returns:
      a Node object.
    • nextSibling

      Node nextSibling()

      nextSibling.

      Returns:
      a Node object.
    • parentNode

      Node parentNode()

      parentNode.

      Returns:
      a Node object.
    • previousNode

      Node previousNode()

      previousNode.

      Returns:
      a Node object.
    • previousSibling

      Node previousSibling()

      previousSibling.

      Returns:
      a Node object.