returns the position of the last node within the iteration , as defined by xpath . in a forward iterator , i believe this equals the number of nodes which this iterator will yield . in a reverse iterator , i believe it should return 1 since the `` last '' is the first produced . this may be an expensive operation when called the first time , since it may have to iterate through a large part of the document to produce its answer . concode_field_sep int _position concode_elem_sep int _startNode concode_elem_sep int _last concode_elem_sep boolean _includeSelf concode_elem_sep boolean _isRestartable concode_elem_sep int _markedNode concode_field_sep DTMAxisIterator cloneIterator concode_elem_sep DTMAxisIterator includeSelf concode_elem_sep int returnNode concode_elem_sep int getPosition concode_elem_sep boolean isReverse concode_elem_sep DTMAxisIterator reset concode_elem_sep int getAxis concode_elem_sep DTMAxisIterator resetPosition concode_elem_sep int getStartNode concode_elem_sep boolean isDocOrdered concode_elem_sep void setRestartable concode_elem_sep int getNodeByPosition
int function ( ) { if ( _last == - 1 ) { final int loc0 = _position ; setMark ( ) ; reset ( ) ; do { _last ++ ; } while ( next ( ) != END ) ; gotoMark ( ) ; _position = loc0 ; } return _last ; }