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
Constructor and Description |
---|
Operation.OpAtom(UnicodeString atom) |
Modifier and Type | Method and Description |
---|---|
String |
display()
Display the operation as a regular expression, possibly in abbreviated form
|
UnicodeString |
getAtom() |
int |
getMatchLength()
Get the length of the matches returned by this operation if they are fixed-length
|
IntIterator |
iterateMatches(REMatcher matcher,
int position)
Get an iterator returning all the matches for this operation
|
boolean |
matchesEmptyString()
Ask whether the regular expression is capable of matching a zero-length string
|
getMinimumMatchLength, optimize
public Operation.OpAtom(UnicodeString atom)
public UnicodeString getAtom()
public int getMatchLength()
Operation
getMatchLength
in class Operation
public boolean matchesEmptyString()
Operation
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-2014 Saxonica Limited. All rights reserved.