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
FieldsModifier and TypeFieldDescriptionstatic final ResourceLoaderstatic final TableTransformersprotected static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected StringconcatenateWithOr(String beforeKeyword, List<String> keywords) protected Keywordskeywords()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 StringstartingWithNL(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:StoryParserParses story from its textual representation- Specified by:
parseStoryin interfaceStoryParser- Parameters:
storyAsText- the textual representation- Returns:
- The Story
-
parseStory
Description copied from interface:StoryParserParses story from its textual representation and (optional) story path- Specified by:
parseStoryin interfaceStoryParser- Parameters:
storyAsText- the textual representationstoryPath- the story path, may benull- Returns:
- The Story
-
keywords
-
splitElements
-
startingWithNL
-
findSteps
-
concatenateStartingWords
-
concatenateWithOr
-