##### Coverage Report - org.jbehave.core.parsers.StepPatternParser

Classes in this File | Line Coverage | Branch Coverage | Complexity
StepPatternParser |
N/A | N/A
N/A | N/A
| 1.0;1

1 |  |
     package org.jbehave.core.parsers;
2 |  |
3 |  |
     import org.jbehave.core.steps.StepType;
4 |  |
5 |  |
     /**
6 |  |
      * <p>
7 |  |
      * Parses a step pattern, as provided in the method annotations, creating a
8 |  |
      * {@link StepMatcher} which will in turn match textual steps conforming to the pattern.
9 |  |
      * E.g.:
10 |  |
      *
11 |  |
      * <pre>
12 |  |
      * I give $money to $name
13 |  |
      * </pre>
14 |  |
      *
15 |  |
      * will match
16 |  |
      *
17 |  |
      * <pre>
18 |  |
      * I give �10 to Fred
19 |  |
      * </pre>
20 |  |
      *
21 |  |
      * and the captured parameters will be &quot;�10&quot; and &quot;Fred&quot;.
22 |  |
      * </p>
23 |  |
      *
24 |  |
      */
25 |  |
     public interface StepPatternParser {
26 |  |
27 |  |
             /**
28 |  |
              * Parses a step pattern to create a step matcher
29 |  |
              *
30 |  |
              *
31 |  |
          * @param stepType
32 |  |
          * @param stepPattern the step pattern
33 |  |
          * @return A StepMatcher that will capture the parameters associated with a
34 |  |
              *         step
35 |  |
              */
36 |  |
             StepMatcher parseStep(StepType stepType, String stepPattern);
37 |  |
38 |  |
     }