Package net.sf.saxon.tree.iter
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 net.sf.saxon.om.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.boolean
moveNext()
Move to the next node, without returning it.Methods inherited from class net.sf.saxon.tree.iter.EmptyIterator
atomize, close, current, emptyIterator, getInstance, getLength, getProperties, getReverseIterator, getStringValue, hasNext, materialize, next, position
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.sf.saxon.tree.iter.AxisIterator
atomize, current, getStringValue, next
Methods inherited from interface net.sf.saxon.om.SequenceIterator
close, getProperties
Methods inherited from interface net.sf.saxon.tree.iter.UnfailingIterator
position
-
Constructor Details
-
EmptyAxisIterator
public EmptyAxisIterator()
-
-
Method Details
-
emptyAxisIterator
-
iterateAxis
Return an iterator over an axis, starting at the current node.- Specified by:
iterateAxis
in interfaceAxisIterator<T extends NodeInfo>
- Parameters:
axis
- the axis to iterate over, using a constant such asAxis.CHILD
test
- 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:
getAnother
in interfaceAxisIterator<T extends NodeInfo>
- Specified by:
getAnother
in interfaceSequenceIterator<T extends NodeInfo>
- Specified by:
getAnother
in interfaceUnfailingIterator<T extends NodeInfo>
- Overrides:
getAnother
in 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:
moveNext
in interfaceAxisIterator<T extends NodeInfo>
- Returns:
- true if there is a next node, false if the end of the sequence has been reached
-