LastPositionFinder<T>
, SequenceIterator<T>
, AxisIterator<T>
, GroundedIterator<T>
, LookaheadIterator<T>
, ReversibleIterator<T>
, UnfailingIterator<T>
public class EmptyAxisIterator<T extends NodeInfo> extends EmptyIterator<T> implements AxisIterator<T>
GROUNDED, LAST_POSITION_FINDER, LOOKAHEAD
Constructor | Description |
---|---|
EmptyAxisIterator() |
Modifier and Type | Method | Description |
---|---|---|
static <T extends NodeInfo> |
emptyAxisIterator() |
|
EmptyAxisIterator<T> |
getAnother() |
Get another iterator over the same items, positioned at the start.
|
AxisIterator |
iterateAxis(byte axis,
NodeTest test) |
Return an iterator over an axis, starting at the current node.
|
boolean |
moveNext() |
Move to the next node, without returning it.
|
atomize, current, getStringValue, next
atomize, close, current, emptyIterator, getInstance, getLength, getProperties, getReverseIterator, getStringValue, hasNext, materialize, next, position
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, getProperties
position
public static <T extends NodeInfo> EmptyAxisIterator<T> emptyAxisIterator()
public AxisIterator iterateAxis(byte axis, NodeTest test)
iterateAxis
in interface AxisIterator<T extends NodeInfo>
axis
- the axis to iterate over, using a constant such as
Axis.CHILD
test
- a predicate to apply to the nodes before returning them.java.lang.NullPointerException
- if there is no current nodepublic EmptyAxisIterator<T> getAnother()
getAnother
in interface AxisIterator<T extends NodeInfo>
getAnother
in interface SequenceIterator<T extends NodeInfo>
getAnother
in interface UnfailingIterator<T extends NodeInfo>
getAnother
in class EmptyIterator<T extends NodeInfo>
public boolean moveNext()
moveNext
in interface AxisIterator<T extends NodeInfo>