Package io.cucumber.plugin.event
Class StepDefinition
- java.lang.Object
-
- io.cucumber.plugin.event.StepDefinition
-
@API(status=STABLE) public final class StepDefinition extends Object
-
-
Constructor Summary
Constructors Constructor Description StepDefinition(String location, String pattern)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLocation()
The source line where the step definition is defined.String
getPattern()
-
-
-
Method Detail
-
getLocation
public String getLocation()
The source line where the step definition is defined. Example: com/example/app/Cucumber.test():42- Returns:
- The source line of the step definition.
-
getPattern
public String getPattern()
- Returns:
- the pattern associated with this instance. Used for error reporting only.
-
-