Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
StepMatcher |
|
| 1.0;1 |
1 | package org.jbehave.core.parsers; | |
2 | ||
3 | import org.jbehave.core.model.StepPattern; | |
4 | ||
5 | /** | |
6 | * A step matcher is responsible for matching steps against a given step pattern | |
7 | * and extracting the parameters for the step | |
8 | */ | |
9 | public interface StepMatcher { | |
10 | ||
11 | boolean matches(String stepWithoutStartingWord); | |
12 | ||
13 | boolean find(String stepWithoutStartingWord); | |
14 | ||
15 | String parameter(int matchedPosition); | |
16 | ||
17 | String[] parameterNames(); | |
18 | ||
19 | StepPattern pattern(); | |
20 | ||
21 | } |