@Test public void parsingMultipleVariables() throws Exception { List<String> segments = parse("${a}:${b}:${c}"); assertSegments(segments, "${a}", ":", "${b}", ":", "${c}"); }
public List<String> parse(String template) { List<String> segments = new ArrayList<String>(); int index = collectSegments(template, segments, 0); addTail(segments, template, index); return segments; }
TemplateParse { public List<String> parse(String template) { List<String> segments = new ArrayList<String>(); int index = collectSegments(template, segments, 0); addTail(segments, template, index); return segments; } }
TemplateParse { public List<String> parse(String template) { List<String> segments = new ArrayList<String>(); int index = collectSegments(template, segments, 0); addTail(segments, template, index); return segments; }  }
TemplateParse { public List<String> parse(String template) { List<String> segments = new ArrayList<String>(); int index = collectSegments(template, segments, 0); addTail(segments, template, index); return segments; }  List<Segment> parseSegments(String template); List<String> parse(String template); }
TemplateParse { public List<String> parse(String template) { List<String> segments = new ArrayList<String>(); int index = collectSegments(template, segments, 0); addTail(segments, template, index); return segments; }  List<Segment> parseSegments(String template); List<String> parse(String template);  }