Package org.jbehave.core.parsers
Class RegexCompositeParser
- java.lang.Object
-
- org.jbehave.core.parsers.RegexCompositeParser
-
- All Implemented Interfaces:
CompositeParser
public class RegexCompositeParser extends Object implements CompositeParser
Pattern-based composite parser, which uses the keywords provided to parse the textual composite steps into a list ofComposite.- Author:
- Mauro Talevi, Valery Yatsynovich
-
-
Constructor Summary
Constructors Constructor Description RegexCompositeParser()RegexCompositeParser(Keywords keywords)
-
Method Summary
Modifier and Type Method Description protected StringconcatenateStartingWords()protected StringconcatenateWithOr(String beforeKeyword, List<String> keywords)protected List<String>findSteps(String stepsAsText)protected Keywordskeywords()List<Composite>parseComposites(String compositesAsText)Parses composite steps from their textual representationprotected List<String>splitElements(String text, String keyword)protected StringstartingWithNL(String text)
-
-
-
Field Detail
-
NONE
protected static final String NONE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RegexCompositeParser
public RegexCompositeParser()
-
RegexCompositeParser
public RegexCompositeParser(Keywords keywords)
-
-
Method Detail
-
parseComposites
public List<Composite> parseComposites(String compositesAsText)
Description copied from interface:CompositeParserParses composite steps from their textual representation- Specified by:
parseCompositesin interfaceCompositeParser- Parameters:
compositesAsText- the textual representation- Returns:
- The List of Composite
-
keywords
protected Keywords keywords()
-
concatenateStartingWords
protected String concatenateStartingWords()
-
-