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