org.apache.xalan.xsltc.dom

Class SimpleResultTreeImpl.SingletonIterator

Enclosing Class:
SimpleResultTreeImpl
Implemented Interfaces:
Cloneable, DTMAxisIterator

public final class SimpleResultTreeImpl.SingletonIterator
extends DTMAxisIteratorBase

The SingletonIterator is used for the self axis.

Fields inherited from interface org.apache.xml.dtm.DTMAxisIterator

END

Constructor Summary

SingletonIterator()
SingletonIterator(int type)

Method Summary

void
gotoMark()
Restores the current node remembered by setMark().
int
next()
Get the next node in the iteration.
void
setMark()
Remembers the current node for the next call to gotoMark().
DTMAxisIterator
setStartNode(int nodeHandle)
Set start to END should 'close' the iterator, i.e. subsequent call to next() should return END.

Methods inherited from class org.apache.xml.dtm.ref.DTMAxisIteratorBase

cloneIterator, getAxis, getLast, getNodeByPosition, getPosition, getStartNode, includeSelf, isDocOrdered, isReverse, reset, setRestartable

Constructor Details

SingletonIterator

public SingletonIterator()

SingletonIterator

public SingletonIterator(int type)

Method Details

gotoMark

public void gotoMark()
Restores the current node remembered by setMark().
Specified by:
gotoMark in interface DTMAxisIterator

next

public int next()
Get the next node in the iteration.
Specified by:
next in interface DTMAxisIterator
Returns:
The next node handle in the iteration, or END.

setMark

public void setMark()
Remembers the current node for the next call to gotoMark().
Specified by:
setMark in interface DTMAxisIterator

setStartNode

public DTMAxisIterator setStartNode(int nodeHandle)
Set start to END should 'close' the iterator, i.e. subsequent call to next() should return END.
Specified by:
setStartNode in interface DTMAxisIterator
Parameters:
Returns:
A DTMAxisIterator set to the start of the iteration.

Copyright © 2006 Apache XML Project. All Rights Reserved.