|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.saxon.om.PrependIterator
public class PrependIterator
An iterator over nodes, that prepends a given node to the nodes returned by another iterator. Used to modify an iterator over axis A to one that iterates over A-OR-SELF.
Field Summary | |
---|---|
(package private) AxisIterator |
base
|
(package private) int |
position
|
(package private) NodeInfo |
start
|
Fields inherited from interface net.sf.saxon.om.SequenceIterator |
---|
ATOMIZABLE, GROUNDED, LAST_POSITION_FINDER, LOOKAHEAD |
Constructor Summary | |
---|---|
PrependIterator(NodeInfo start,
AxisIterator base)
|
Method Summary | |
---|---|
Item |
current()
Get the current item in the sequence. |
SequenceIterator |
getAnother()
Get another iterator over the same sequence of items, positioned at the start of the sequence |
int |
getProperties()
Get properties of this iterator, as a bit-significant integer. |
Item |
next()
Get the next item in the sequence. |
int |
position()
Get the current position |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
NodeInfo start
AxisIterator base
int position
Constructor Detail |
---|
public PrependIterator(NodeInfo start, AxisIterator base)
Method Detail |
---|
public Item next()
next
in interface AxisIterator
next
in interface SequenceIterator
public Item current()
current
in interface AxisIterator
current
in interface SequenceIterator
public int position()
position
in interface AxisIterator
position
in interface SequenceIterator
public SequenceIterator getAnother()
getAnother
in interface AxisIterator
getAnother
in interface SequenceIterator
public int getProperties()
getProperties
in interface SequenceIterator
GROUNDED
, LAST_POSITION_FINDER
,
and LOOKAHEAD
. It is always
acceptable to return the value zero, indicating that there are no known special properties.
It is acceptable for the properties of the iterator to change depending on its state.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |