public interface LastPositionFinder
Modifier and Type | Method and Description |
---|---|
int |
getLength()
Get the last position (that is, the number of items in the sequence).
|
boolean |
supportsGetLength()
Ask whether this iterator supports use of the
getLength() method. |
boolean supportsGetLength()
getLength()
method. This
method should always be called before calling getLength()
, because an iterator
that implements this interface may support use of getLength()
in some situations
and not in othersgetLength()
method can be called to determine the length
of the underlying sequence.int getLength()
supportsGetLength()
has been called
and has returned true.UncheckedXPathException
- if an error occurs evaluating the sequence in order to determine
the number of itemsjava.lang.ClassCastException
- if the capability is not available. (This exception is not guaranteed.)Copyright (c) 2004-2022 Saxonica Limited. All rights reserved.