Class Timeline.BaseParser

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected BaseParser()  
    • Constructor Detail

      • BaseParser

        protected BaseParser()
    • Method Detail

      • createTimeline

        protected abstract Timeline createTimeline()
      • parse

        public Timeline parse​(java.lang.String input)
                       throws java.text.ParseException
        Specified by:
        parse in interface Timeline.TimelineParser
        Throws:
        java.text.ParseException
      • parsePart

        protected abstract long parsePart​(java.lang.String pattern)
                                   throws java.lang.Exception
        Should parse the provided sub pattern and add it to the timeline. Should throw an exception if the pattern cannot be parsed for some reason.
        Throws:
        java.lang.Exception
      • addToTimeline

        protected void addToTimeline​(Timeline tl,
                                     long start,
                                     long end)