Methods Summary |
---|
public com.sun.org.apache.xml.internal.dtm.DTMAxisIterator | cloneIterator()
try {
final MatchingIterator clone = (MatchingIterator) super.clone();
clone._source = _source.cloneIterator();
clone._isRestartable = false;
return clone.reset();
}
catch (CloneNotSupportedException e) {
BasisLibrary.runTimeError(BasisLibrary.ITERATOR_CLONE_ERR,
e.toString());
return null;
}
|
public int | getLast()
if (_last == -1) {
_last = _source.getLast();
}
return _last;
|
public int | getPosition()
return _position;
|
public void | gotoMark()
_source.gotoMark();
|
public int | next()
return _source.next();
|
public com.sun.org.apache.xml.internal.dtm.DTMAxisIterator | reset()
_source.reset();
return resetPosition();
|
public void | setMark()
_source.setMark();
|
public void | setRestartable(boolean isRestartable)
_isRestartable = isRestartable;
_source.setRestartable(isRestartable);
|
public com.sun.org.apache.xml.internal.dtm.DTMAxisIterator | setStartNode(int node)
if (_isRestartable) {
// iterator is not a clone
_source.setStartNode(node);
// Calculate the position of the node in the set
_position = 1;
while ((node = _source.next()) != END && node != _match) {
_position++;
}
}
return this;
|