Operation.OpAtom, Operation.OpBackReference, Operation.OpBOL, Operation.OpCapture, Operation.OpCharClass, Operation.OpChoice, Operation.OpEndProgram, Operation.OpEOL, Operation.OpGreedyFixed, Operation.OpNothing, Operation.OpReluctantFixed, Operation.OpRepeat, Operation.OpSequence, Operation.OpTrace, Operation.OpUnambiguousRepeat
Modifier and Type | Field and Description |
---|---|
int |
groupNr |
MATCHES_ZLS_ANYWHERE, MATCHES_ZLS_AT_END, MATCHES_ZLS_AT_START, MATCHES_ZLS_NEVER
Constructor and Description |
---|
OpBackReference(int groupNr) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
display()
Display the operation as a regular expression, possibly in abbreviated form
|
IntIterator |
iterateMatches(REMatcher matcher,
int position)
Get an iterator returning all the matches for this operation
|
int |
matchesEmptyString()
Ask whether the regular expression is known, after static analysis, to match a
zero-length string
|
containsCapturingExpressions, getInitialCharacterClass, getMatchLength, getMinimumMatchLength, optimize
public int matchesEmptyString()
matchesEmptyString
in class Operation
public IntIterator iterateMatches(REMatcher matcher, int position)
Operation
iterateMatches
in class Operation
matcher
- supplies the context for the matching; may be updated with information about
captured groupsposition
- the start position to seek a matchCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.