Class 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 of Composite.
    Author:
    Mauro Talevi, Valery Yatsynovich
    • Constructor Detail

      • RegexCompositeParser

        public RegexCompositeParser()
      • RegexCompositeParser

        public RegexCompositeParser​(Keywords keywords)
    • Method Detail

      • parseComposites

        public List<Composite> parseComposites​(String compositesAsText)
        Description copied from interface: CompositeParser
        Parses composite steps from their textual representation
        Specified by:
        parseComposites in interface CompositeParser
        Parameters:
        compositesAsText - the textual representation
        Returns:
        The List of Composite
      • keywords

        protected Keywords keywords()
      • startingWithNL

        protected String startingWithNL​(String text)
      • concatenateStartingWords

        protected String concatenateStartingWords()