public interface RegexIterator extends SequenceIterator
Modifier and Type | Interface and Description |
---|---|
static interface |
RegexIterator.OnGroup
Interface defining a call-back action for processing captured groups
|
GROUNDED, LAST_POSITION_FINDER, LOOKAHEAD
Modifier and Type | Method and Description |
---|---|
String |
getRegexGroup(int number)
Get a substring that matches a parenthesised group within the regular expression
|
SequenceIterator |
getRegexGroupIterator()
Get a sequence containing all the regex captured groups relating to the current matching item
(except group 0, because we want to use indexing from 1).
|
RegexIterator |
getSnapShot(XPathContext context)
Get a Regex sequence which is a snapshot of this sequence at the current position
|
boolean |
isMatching()
Determine whether the current item in the sequence is a matching item or a non-matching item
|
void |
processMatchingSubstring(XPathContext context,
RegexIterator.OnGroup action)
Process a matching substring, performing specified actions at the start and end of each matching
group
|
close, current, getAnother, getProperties, next, position
boolean isMatching()
String getRegexGroup(int number)
number
- the number of the group to be obtainedSequenceIterator getRegexGroupIterator()
void processMatchingSubstring(XPathContext context, RegexIterator.OnGroup action) throws XPathException
XPathException
RegexIterator getSnapShot(XPathContext context) throws XPathException
XPathException
Copyright (c) 2004-2013 Saxonica Limited. All rights reserved.