Package org.jbehave.core.parsers
Class RegexCompositeParser
java.lang.Object
org.jbehave.core.parsers.RegexCompositeParser
- All Implemented Interfaces:
CompositeParser
Pattern-based composite parser, which uses the keywords provided to parse the
textual composite steps into a list of
Composite
.- Author:
- Mauro Talevi, Valery Yatsynovich
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String
protected String
concatenateWithOr
(String beforeKeyword, List<String> keywords) protected Keywords
keywords()
parseComposites
(String compositesAsText) Parses composite steps from their textual representationsplitElements
(String text, String keyword) protected String
startingWithNL
(String text)
-
Field Details
-
NONE
- See Also:
-
-
Constructor Details
-
RegexCompositeParser
public RegexCompositeParser() -
RegexCompositeParser
-
-
Method Details
-
parseComposites
Description copied from interface:CompositeParser
Parses composite steps from their textual representation- Specified by:
parseComposites
in interfaceCompositeParser
- Parameters:
compositesAsText
- the textual representation- Returns:
- The List of Composite
-
keywords
-
splitElements
-
startingWithNL
-
findSteps
-
concatenateStartingWords
-
concatenateWithOr
-