|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.om.ArrayIterator net.sf.saxon.om.NodeArrayIterator
public class NodeArrayIterator
An iterator over an array of nodes. This is the same as
ArrayIterator
, except that the iterator is an AxisIterator
Field Summary |
---|
Fields inherited from interface net.sf.saxon.om.SequenceIterator |
---|
GROUNDED, LAST_POSITION_FINDER, LOOKAHEAD |
Constructor Summary | |
---|---|
NodeArrayIterator(NodeInfo[] nodes)
|
|
NodeArrayIterator(NodeInfo[] nodes,
int start,
int end)
|
Method Summary | |
---|---|
Value |
atomize()
Return the atomized value of the current node. |
SequenceIterator |
getAnother()
Get another iterator over the same items |
SequenceIterator |
getReverseIterator()
Get an iterator that processes the same items in reverse order |
CharSequence |
getStringValue()
Return the string value of the current node. |
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. |
Methods inherited from class net.sf.saxon.om.ArrayIterator |
---|
current, getArray, getEndPosition, getLastPosition, getProperties, getStartPosition, hasNext, makeSliceIterator, materialize, next, position |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.saxon.om.UnfailingIterator |
---|
current, next, position |
Methods inherited from interface net.sf.saxon.om.SequenceIterator |
---|
getProperties |
Constructor Detail |
---|
public NodeArrayIterator(NodeInfo[] nodes)
public NodeArrayIterator(NodeInfo[] nodes, int start, int end)
Method Detail |
---|
public boolean moveNext()
moveNext
in interface AxisIterator
public AxisIterator iterateAxis(byte axis, NodeTest test)
iterateAxis
in interface AxisIterator
axis
- the axis to iterate over, using a constant such as
Axis.CHILD
test
- a predicate to apply to the nodes before returning them.
NullPointerException
- if there is no current nodepublic Value atomize() throws XPathException
atomize
in interface AxisIterator
NullPointerException
- if there is no current node
XPathException
public CharSequence getStringValue()
getStringValue
in interface AxisIterator
NullPointerException
- if there is no current nodepublic SequenceIterator getAnother()
getAnother
in interface SequenceIterator
getAnother
in interface UnfailingIterator
getAnother
in class ArrayIterator
public SequenceIterator getReverseIterator()
getReverseIterator
in interface ReversibleIterator
getReverseIterator
in class ArrayIterator
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |