Package io.cucumber.cucumberexpressions
Class ExpressionFactory
- java.lang.Object
-
- io.cucumber.cucumberexpressions.ExpressionFactory
-
@API(status=STABLE) public final class ExpressionFactory extends Object
Creates aCucumberExpressionorRegularExpressionfrom aStringusing 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 `$` is considered a regular expression. Everything else is considered a Cucumber expression.
-
-
Constructor Summary
Constructors Constructor Description ExpressionFactory(ParameterTypeRegistry parameterTypeRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpressioncreateExpression(String expressionString)
-
-
-
Constructor Detail
-
ExpressionFactory
public ExpressionFactory(ParameterTypeRegistry parameterTypeRegistry)
-
-
Method Detail
-
createExpression
public Expression createExpression(String expressionString)
-
-