Package org.jbehave.core.parsers
Class RegexStoryParser
java.lang.Object
org.jbehave.core.parsers.RegexStoryParser
- All Implemented Interfaces:
StoryParser
Pattern-based story parser, which uses the keywords provided to parse the
textual story into a
Story
.-
Field Summary
Modifier and TypeFieldDescriptionstatic final ResourceLoader
static final TableTransformers
protected static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
protected String
concatenateWithOr
(String beforeKeyword, List<String> keywords) protected Keywords
keywords()
parseStory
(String storyAsText) Parses story from its textual representationparseStory
(String storyAsText, String storyPath) Parses story from its textual representation and (optional) story pathsplitElements
(String text, String keyword) protected String
startingWithNL
(String text)
-
Field Details
-
DEFAULT_RESOURCE_LOADER
-
DEFAULT_TABLE_TRANSFORMERS
-
NONE
- See Also:
-
-
Constructor Details
-
RegexStoryParser
public RegexStoryParser() -
RegexStoryParser
-
-
Method Details
-
parseStory
Description copied from interface:StoryParser
Parses story from its textual representation- Specified by:
parseStory
in interfaceStoryParser
- Parameters:
storyAsText
- the textual representation- Returns:
- The Story
-
parseStory
Description copied from interface:StoryParser
Parses story from its textual representation and (optional) story path- Specified by:
parseStory
in interfaceStoryParser
- Parameters:
storyAsText
- the textual representationstoryPath
- the story path, may benull
- Returns:
- The Story
-
keywords
-
splitElements
-
startingWithNL
-
findSteps
-
concatenateStartingWords
-
concatenateWithOr
-