Package org.jbehave.core.parsers
Interface StepPatternParser
- All Known Implementing Classes:
RegexPrefixCapturingPatternParser
public interface StepPatternParser
Parses a step pattern, as provided in the method annotations, creating a
StepMatcher
which will in turn match textual steps conforming to the pattern.
E.g.:
I give $money to $namewill match
I give �10 to Fredand the captured parameters will be "�10" and "Fred".
-
Method Summary
-
Method Details
-
parseStep
Parses a step pattern to create a step matcher- Parameters:
stepType
- the step typestepPattern
- the step pattern- Returns:
- A StepMatcher that will capture the parameters associated with a step
-
getPrefix
String getPrefix()Returns current parameter prefix- Returns:
- parameter prefix, e.g. $
-