Class EmptyAxisIterator<T extends NodeInfo>
java.lang.Object
net.sf.saxon.tree.iter.EmptyIterator<T>
net.sf.saxon.tree.iter.EmptyAxisIterator<T>
- All Implemented Interfaces:
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>
An AxisIterator over an empty sequence
-
Field Summary
Fields inherited from interface SequenceIterator
GROUNDED, LAST_POSITION_FINDER, LOOKAHEAD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends NodeInfo>
EmptyAxisIterator<T> Get another iterator over the same items, positioned at the start.iterateAxis(byte axis, NodeTest test) Return an iterator over an axis, starting at the current node.booleanmoveNext()Move to the next node, without returning it.Methods inherited from class EmptyIterator
atomize, close, current, emptyIterator, getInstance, getLength, getProperties, getReverseIterator, getStringValue, hasNext, materialize, next, positionMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AxisIterator
atomize, current, getStringValue, nextMethods inherited from interface SequenceIterator
close, getPropertiesMethods inherited from interface UnfailingIterator
position
-
Constructor Details
-
EmptyAxisIterator
public EmptyAxisIterator()
-
-
Method Details
-
emptyAxisIterator
-
iterateAxis
Return an iterator over an axis, starting at the current node.- Specified by:
iterateAxisin interfaceAxisIterator<T extends NodeInfo>- Parameters:
axis- the axis to iterate over, using a constant such asAxis.CHILDtest- a predicate to apply to the nodes before returning them.- Returns:
- an iterator over an axis, starting at the current node
- Throws:
NullPointerException- if there is no current node
-
getAnother
Get another iterator over the same items, positioned at the start.- Specified by:
getAnotherin interfaceAxisIterator<T extends NodeInfo>- Specified by:
getAnotherin interfaceSequenceIterator<T extends NodeInfo>- Specified by:
getAnotherin interfaceUnfailingIterator<T extends NodeInfo>- Overrides:
getAnotherin classEmptyIterator<T extends NodeInfo>- Returns:
- another iterator over an empty sequence (in practice, it returns the same iterator each time)
-
moveNext
public boolean moveNext()Move to the next node, without returning it. Returns true if there is a next node, false if the end of the sequence has been reached. After calling this method, the current node may be retrieved using the current() function.- Specified by:
moveNextin interfaceAxisIterator<T extends NodeInfo>- Returns:
- true if there is a next node, false if the end of the sequence has been reached
-