| Modifier and Type | Field and Description |
|---|---|
| private Iterator | ascending
The iterator going up the tree, null unless next() returned dead-end |
| private Iterator | current
The iterator that supplied to most recent next() |
| private Iterator | descending
The iterator going down the tree, null unless next() returned Parent |
| private boolean | hasnext
what it says... |
| private final Parent | parent
Needed to be Iterable! |
| private int | |
| private Object[] |
| Access | Constructor and Description |
|---|---|
| pack-priv | DescendantIterator(Parent
document or element whose descendants will be iterated parent)Iterator for the descendants of the supplied object. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true is the iterator has more descendantsImplements java. Content descendants.
|
| public DescendantIterator | |
| public Content | Returns: the next descendantImplements java. Content descendant.
|
| public void | remove()
Overrides default java. org. returned by the last call to
next from its parentNote this does not affect iteration and all children, siblings, and any node following the removed node (in document order) will be visited. |
| ascending | back to summary |
|---|---|
| private Iterator<Content> ascending The iterator going up the tree, null unless next() returned dead-end | |
| current | back to summary |
|---|---|
| private Iterator<Content> current The iterator that supplied to most recent next() | |
| descending | back to summary |
|---|---|
| private Iterator<Content> descending The iterator going down the tree, null unless next() returned Parent | |
| hasnext | back to summary |
|---|---|
| private boolean hasnext what it says... | |
| parent | back to summary |
|---|---|
| private final Parent parent Needed to be Iterable! | |
| ssize | back to summary |
|---|---|
| private int ssize | |
| stack | back to summary |
|---|---|
| private Object[] stack | |
| DescendantIterator | back to summary |
|---|---|
| pack-priv DescendantIterator(Parent parent) Iterator for the descendants of the supplied object.
| |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Returns true if the iteration has more
| |
| iterator | back to summary |
|---|---|
| public DescendantIterator iterator() Implements java. Doc from java. Returns an iterator over elements of type
| |
| next | back to summary |
|---|---|
| public Content next() Implements java. Returns the next | |
| remove | back to summary |
|---|---|
| public void remove() Overrides default java. Detaches the last Note this does not affect iteration and all children, siblings, and any node following the removed node (in document order) will be visited.
| |