@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="TreeWalker")
public class TreeWalker
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
Node |
currentNode
The TreeWalker.currentNode property represents the Node on which the TreeWalker is currently pointing at.
|
| Modifier | Constructor and Description |
|---|---|
protected |
TreeWalker() |
| Modifier and Type | Method and Description |
|---|---|
NodeFilter |
filter()
The TreeWalker.filter read-only property returns a NodeFilter that is the filtering object associated with the TreeWalker.
|
Node |
firstChild()
The TreeWalker.firstChild() method moves the current Node to the first visible child of the current node, and returns the found child.
|
Node |
lastChild()
The TreeWalker.lastChild() method moves the current Node to the last visible child of the current node, and returns the found child.
|
Node |
nextNode()
The TreeWalker.nextNode() method moves the current Node to the next visible node in the document order, and returns the found node.
|
Node |
nextSibling()
The TreeWalker.nextSibling() method moves the current Node to its next sibling, if any, and returns the found sibling.
|
Node |
parentNode()
The TreeWalker.parentNode() method moves the current Node to the first visible ancestor node in the document order, and returns the found node.
|
Node |
previousNode()
The TreeWalker.previousNode() method moves the current Node to the previous visible node in the document order, and returns the found node.
|
Node |
previousSibling()
The TreeWalker.previousSibling() method moves the current Node to its previous sibling, if any, and returns the found sibling.
|
Node |
root()
The TreeWalker.root read-only property returns the node that is the root of what the TreeWalker traverses.
|
int |
whatToShow()
The TreeWalker.whatToShow read-only property returns an unsigned long being a bitmask made of constants describing the types of Node that must to be presented.
|
@Nonnull public Node currentNode
@JsProperty(name="filter") @Nullable public NodeFilter filter()
@JsProperty(name="root") @Nonnull public Node root()
@JsProperty(name="whatToShow") public int whatToShow()
@Nullable public Node firstChild()
@Nullable public Node lastChild()
@Nullable public Node nextNode()
@Nullable public Node nextSibling()
@Nullable public Node parentNode()
@Nullable public Node previousNode()
@Nullable public Node previousSibling()