@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="NodeIterator")
public class NodeIterator
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
NodeIterator() |
| Modifier and Type | Method and Description |
|---|---|
void |
detach()
The NodeIterator.detach() method is a no-op, kept for backward compatibility only.
|
NodeFilter |
filter()
The NodeIterator.filter read-only method returns a NodeFilter object, that is an object implement an acceptNode(node) method, used to screen nodes.
|
Node |
nextNode()
The NodeIterator.nextNode() method returns the next node in the set represented by the NodeIterator and advances the position of the iterator within the set.
|
boolean |
pointerBeforeReferenceNode()
The NodeIterator.pointerBeforeReferenceNode read-only property returns a Boolean flag that indicates whether the NodeFilter is anchored before (if this value is true) or after (if this value is false) the anchor node indicated by the NodeIterator.referenceNode property.
|
Node |
previousNode()
The NodeIterator.previousNode() method returns the previous node in the set represented by the NodeIterator and moves the position of the iterator backwards within the set.
|
Node |
referenceNode()
The NodeIterator.referenceNode read-only returns the Node to which the iterator is anchored; as new nodes are inserted, the iterator remains anchored to the reference node as specified by this property.
|
Node |
root()
The NodeIterator.root read-only property represents the Node that is the root of what the NodeIterator traverses.
|
int |
whatToShow()
The NodeIterator.whatToShow read-only property represents an unsigned integer representing a bitmask signifying what types of nodes should be returned by the NodeIterator.
|
@JsProperty(name="filter") @Nullable public NodeFilter filter()
@JsProperty(name="pointerBeforeReferenceNode") public boolean pointerBeforeReferenceNode()
@JsProperty(name="referenceNode") @Nonnull public Node referenceNode()
@JsProperty(name="root") @Nonnull public Node root()
@JsProperty(name="whatToShow") public int whatToShow()
public void detach()
@Nullable public Node nextNode()
@Nullable public Node previousNode()