Class RegularExpression

java.lang.Object
io.cucumber.cucumberexpressions.RegularExpression
All Implemented Interfaces:
Expression

@API(status=STABLE) public final class RegularExpression extends Object implements Expression
  • Field Details

    • expressionRegexp

      private final Pattern expressionRegexp
    • parameterTypeRegistry

      private final ParameterTypeRegistry parameterTypeRegistry
    • treeRegexp

      private final TreeRegexp 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 use
      parameterTypeRegistry - used to look up parameter types
  • Method Details