Package io.cucumber.cucumberexpressions
Class RegularExpression
java.lang.Object
io.cucumber.cucumberexpressions.RegularExpression
- All Implemented Interfaces:
Expression
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Patternprivate final ParameterTypeRegistryprivate final TreeRegexp -
Constructor Summary
ConstructorsConstructorDescriptionRegularExpression(Pattern expressionRegexp, ParameterTypeRegistry parameterTypeRegistry) Creates a new instance. -
Method Summary
-
Field Details
-
expressionRegexp
-
parameterTypeRegistry
-
treeRegexp
-
-
Constructor Details
-
RegularExpression
RegularExpression(Pattern expressionRegexp, ParameterTypeRegistry parameterTypeRegistry) Creates a new instance. Use this when the transform types are not known in advance, and should be determined by the regular expression's capture groups. Use this with dynamically typed languages.- Parameters:
expressionRegexp- the regular expression to useparameterTypeRegistry- used to look up parameter types
-
-
Method Details
-
match
Description copied from interface:ExpressionMatches a string to an expression. Empty if no match.- Specified by:
matchin interfaceExpression
-
getRegexp
- Specified by:
getRegexpin interfaceExpression
-
getSource
- Specified by:
getSourcein interfaceExpression
-