Package org.loboevolution.traversal
Interface TreeWalker
- All Known Implementing Classes:
TreeWalkerImpl
public interface TreeWalker
The nodes of a document subtree and a position within them.
-
Method Summary
Modifier and TypeMethodDescriptionfirstChild.getCurrentNode.getFilter.getRoot()
getRoot.int
getWhatToShow.lastChild.nextNode()
nextNode.nextSibling.parentNode.previousNode.previousSibling.void
setCurrentNode
(Node currentNode) setCurrentNode.
-
Method Details
-
getCurrentNode
Node getCurrentNode()getCurrentNode.
- Returns:
- a
Node
object.
-
setCurrentNode
setCurrentNode.
- Parameters:
currentNode
- aNode
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.
-