Class PrecedingIterator
java.lang.Object
com.puppycrawl.tools.checkstyle.xpath.iterators.PrecedingIterator
- All Implemented Interfaces:
Closeable
,AutoCloseable
,net.sf.saxon.om.SequenceIterator
,net.sf.saxon.tree.iter.AxisIterator
Recursive-free implementation of the preceding axis iterator.
-
Field Summary
Modifier and TypeFieldDescriptionprivate final net.sf.saxon.tree.iter.AxisIterator
Ancestor axis iterator.private net.sf.saxon.tree.iter.AxisIterator
Descendant axis iterator.private net.sf.saxon.tree.iter.AxisIterator
Preceding-sibling axis iterator. -
Constructor Summary
ConstructorDescriptionPrecedingIterator
(net.sf.saxon.om.NodeInfo start) Create an iterator over the "preceding" axis. -
Method Summary
Modifier and TypeMethodDescriptionnet.sf.saxon.om.NodeInfo
next()
Get the next item in the sequence.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.om.SequenceIterator
close
-
Field Details
-
ancestorEnum
Ancestor axis iterator. -
previousSiblingEnum
Preceding-sibling axis iterator. -
descendantEnum
Descendant axis iterator.
-
-
Constructor Details
-
PrecedingIterator
Create an iterator over the "preceding" axis.- Parameters:
start
- the initial context node.
-
-
Method Details
-
next
Get the next item in the sequence.- Specified by:
next
in interfacenet.sf.saxon.tree.iter.AxisIterator
- Specified by:
next
in interfacenet.sf.saxon.om.SequenceIterator
- Returns:
- the next Item. If there are no more nodes, return null.
-