| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | DOMSubTreeData.
This is an Iterator that contains a backing node-set that is not populated until the caller first attempts to advance the iterator. |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private Node |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public Node | |
| public Iterator | iterator()
Implements javax. Returns a read-only iterator over the nodes contained in this
|
| excludeComments | back to summary |
|---|---|
| private boolean excludeComments | |
| root | back to summary |
|---|---|
| private Node root | |
| DOMSubTreeData | back to summary |
|---|---|
| public DOMSubTreeData(Node root, boolean excludeComments) | |
| excludeComments | back to summary |
|---|---|
| public boolean excludeComments() | |
| getRoot | back to summary |
|---|---|
| public Node getRoot() | |
| iterator | back to summary |
|---|---|
| public Iterator Implements javax. Doc from javax. Returns a read-only iterator over the nodes contained in this
| |
| Modifier and Type | Field and Description |
|---|---|
| private ListIterator | |
| private List | |
| private Node | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private List | Returns: a set of nodes (minus any comment nodes)the node (document or element) referenced by the
URI fragment. If null, returns an empty set. node)Dereferences a same-document URI fragment. |
| public boolean | |
| public Node | |
| private void | nodeSetMinusCommentNodes(Node
the node to traverse node, List<Node> the set of nodes traversed so far nodeSet, Node the previous sibling node prevSibling)Recursively traverses the subtree, and returns an XPath-equivalent node-set of all nodes traversed, excluding any comment nodes, if specified. |
| public void | remove()
Overrides default java. Removes from the underlying collection the last element returned by this iterator (optional operation). |
| li | back to summary |
|---|---|
| private ListIterator<Node> li | |
| nodeSet | back to summary |
|---|---|
| private List<Node> nodeSet | |
| root | back to summary |
|---|---|
| private Node root | |
| withComments | back to summary |
|---|---|
| private boolean withComments | |
| DelayedNodeIterator | back to summary |
|---|---|
| pack-priv DelayedNodeIterator(Node root, boolean excludeComments) | |
| dereferenceSameDocumentURI | back to summary |
|---|---|
| private List Dereferences a same-document URI fragment. | |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public Node next() Implements java. Doc from java. Returns the next element in the iteration.
| |
| nodeSetMinusCommentNodes | back to summary |
|---|---|
| private void nodeSetMinusCommentNodes(Node node, List<Node> nodeSet, Node prevSibling) Recursively traverses the subtree, and returns an XPath-equivalent node-set of all nodes traversed, excluding any comment nodes, if specified.
| |
| remove | back to summary |
|---|---|
| public void remove() Overrides default java. Doc from java. Removes from the underlying collection the last element returned
by this iterator (optional operation). This method can be called
only once per call to The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method, unless an overriding class has specified a concurrent modification policy.
The behavior of an iterator is unspecified if this method is called
after a call to the
| |