Class ExpressionFactory

java.lang.Object
io.cucumber.cucumberexpressions.ExpressionFactory

@API(status=STABLE) public final class ExpressionFactory extends Object
Creates a CucumberExpression or RegularExpression from a String using heuristics. This is particularly useful for languages that don't have a literal syntax for regular expressions. In Java, a regular expression has to be represented as a String. A string that starts with `^` and/or ends with `$` (or written in script style, i.e. starting with `/` and ending with `/`) is considered a regular expression. Everything else is considered a Cucumber expression.
  • Constructor Details

  • Method Details

    • createExpression

      public Expression createExpression(String expressionString)