Package net.sf.saxon.regex
Class RegexPrecondition
- java.lang.Object
- 
- net.sf.saxon.regex.RegexPrecondition
 
- 
 public class RegexPrecondition extends java.lang.ObjectA precondition that must be true if a regular expression is to match
- 
- 
Field SummaryFields Modifier and Type Field Description intfixedPositionintminPositionOperationoperation
 - 
Constructor SummaryConstructors Constructor Description RegexPrecondition(Operation op, int fixedPos, int minPos)Create a precondition for a regular expression to be true
 
- 
- 
- 
Field Detail- 
operationpublic Operation operation 
 - 
fixedPositionpublic int fixedPosition 
 - 
minPositionpublic int minPosition 
 
- 
 - 
Constructor Detail- 
RegexPreconditionpublic RegexPrecondition(Operation op, int fixedPos, int minPos) Create a precondition for a regular expression to be true- Parameters:
- op- the operation to be performed. The precondition is true if op.iterateMatches(p).hasNext() is true at some position p, subject to the constraints in the other two arguments
- fixedPos- indicates that the operation only needs to be tested at this position. Used when all previous parts of the regular expression are fixed length, and the regex starts with a "^" anchor. Defaults to -1, indicating that the operation needs to be tested at every position.
- minPos- indicates that the operation needs to be tested at this position and all subsequent positions within the input string (until a match is found or the end of the string is reached). Defaults to 0.
 
 
- 
 
-