static class NodeIterators.FunctionlessLocalScope extends java.lang.Object implements java.util.Iterator<Node>
Modifier and Type | Field and Description |
---|---|
private java.util.Stack<Node> |
ancestors |
Constructor and Description |
---|
FunctionlessLocalScope(Node... ancestors) |
Modifier and Type | Method and Description |
---|---|
protected Node |
current()
Gets the node most recently returned by next().
|
(package private) java.util.List<Node> |
currentAncestors()
Gets the ancestors of the current node, with the deepest node first.
|
protected Node |
currentParent()
Gets the parent of the node most recently returned by next().
|
boolean |
hasNext() |
Node |
next() |
void |
remove() |
private final java.util.Stack<Node> ancestors
FunctionlessLocalScope(Node... ancestors)
ancestors
- The ancestors of the point where iteration will start,
beginning with the deepest ancestor. The start node will not be
exposed in the iteration.public boolean hasNext()
hasNext
in interface java.util.Iterator<Node>
public void remove()
remove
in interface java.util.Iterator<Node>
protected Node current()
protected Node currentParent()
java.util.List<Node> currentAncestors()