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 |
|---|
OpAtom(UnicodeString atom) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
display()
Display the operation as a regular expression, possibly in abbreviated form
|
UnicodeString |
getAtom() |
CharacterClass |
getInitialCharacterClass(boolean caseBlind)
Get a CharacterClass identifying the set of characters that can appear as the first
character of a non-empty string that matches this term.
|
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
|
containsCapturingExpressions, getMinimumMatchLength, optimizepublic OpAtom(UnicodeString atom)
public UnicodeString getAtom()
public int getMatchLength()
OperationgetMatchLength in class Operationpublic boolean matchesEmptyString()
OperationmatchesEmptyString in class Operationpublic CharacterClass getInitialCharacterClass(boolean caseBlind)
OperationgetInitialCharacterClass in class OperationcaseBlind - true if case-blind matching is in force ("i" flag)public IntIterator iterateMatches(REMatcher matcher, int position)
OperationiterateMatches in class Operationmatcher - supplies the context for the matching; may be updated with information about
captured groupsposition - the start position to seek a matchpublic java.lang.String display()
OperationCopyright (c) 2004-2018 Saxonica Limited. All rights reserved.