public class ManualRegexIterator extends ManualIterator implements RegexIterator
RegexIterator.MatchHandlerATOMIZING, GROUNDED, LAST_POSITION_FINDER, LOOKAHEAD| Constructor and Description |
|---|
ManualRegexIterator(RegexIterator base) |
| Modifier and Type | Method and Description |
|---|---|
int |
getNumberOfGroups()
Get the number of captured groups
|
java.lang.String |
getRegexGroup(int number)
Get a substring that matches a parenthesised group within the regular expression
|
boolean |
isMatching()
Determine whether the current item in the sequence is a matching item or a non-matching item
|
void |
processMatchingSubstring(RegexIterator.MatchHandler action)
Process a matching substring, performing specified actions at the start and end of each matching
group
|
close, current, getLength, getProperties, getResidue, getReverseIterator, hasNext, incrementPosition, materialize, next, position, setContextItem, setLastPositionFinder, setPositionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, getProperties, nextpublic ManualRegexIterator(RegexIterator base)
public int getNumberOfGroups()
getNumberOfGroups in interface RegexIteratorpublic boolean isMatching()
isMatching in interface RegexIteratorpublic java.lang.String getRegexGroup(int number)
getRegexGroup in interface RegexIteratornumber - the number of the group to be obtainedpublic void processMatchingSubstring(RegexIterator.MatchHandler action) throws XPathException
processMatchingSubstring in interface RegexIteratoraction - XPathExceptionCopyright (c) 2004-2018 Saxonica Limited. All rights reserved.