protected abstract static class Timeline.BaseParser extends java.lang.Object implements Timeline.TimelineParser
Modifier | Constructor and Description |
---|---|
protected |
BaseParser() |
Modifier and Type | Method and Description |
---|---|
protected void |
addToTimeline(Timeline tl,
long start,
long end) |
protected abstract Timeline |
createTimeline() |
Timeline |
parse(java.lang.String input) |
protected abstract long |
parsePart(java.lang.String pattern)
Should parse the provided sub pattern and add it to the timeline.
|
protected abstract Timeline createTimeline()
public Timeline parse(java.lang.String input) throws java.text.ParseException
parse
in interface Timeline.TimelineParser
java.text.ParseException
protected abstract long parsePart(java.lang.String pattern) throws java.lang.Exception
timeline
- pattern
- position
- java.lang.Exception
protected void addToTimeline(Timeline tl, long start, long end)