Class ManualRegexIterator

    • Constructor Detail

      • ManualRegexIterator

        public ManualRegexIterator​(RegexIterator base)
    • Method Detail

      • next

        public StringValue next()
        Description copied from interface: SequenceIterator
        Get the next item in the sequence. This method changes the state of the iterator.
        Specified by:
        next in interface RegexIterator
        Specified by:
        next in interface SequenceIterator
        Specified by:
        next in interface UnfailingIterator
        next in class ManualIterator
        the next item, or null if there are no more items. Once a call on next() has returned null, no further calls should be made. The preferred action for an iterator if subsequent calls on next() are made is to return null again, and all implementations within Saxon follow this rule.
      • isMatching

        public boolean isMatching()
        Determine whether the current item in the sequence is a matching item or a non-matching item
        Specified by:
        isMatching in interface RegexIterator
        true if the current item is a matching item
      • getRegexGroup

        public java.lang.String getRegexGroup​(int number)
        Get a substring that matches a parenthesised group within the regular expression
        Specified by:
        getRegexGroup in interface RegexIterator
        number - the number of the group to be obtained
        the substring of the current item that matches the n'th parenthesized group within the regular expression
      • processMatchingSubstring

        public void processMatchingSubstring​(RegexIterator.MatchHandler action)
        Process a matching substring, performing specified actions at the start and end of each matching group
        Specified by:
        processMatchingSubstring in interface RegexIterator
        action - the action to be performed on a matching substring