@Test public void exposes_group_source() { TreeRegexp tr = new TreeRegexp("(a(?:b)?)(c)"); List<String> list = new ArrayList<>(); for (GroupBuilder gb : tr.getGroupBuilder().getChildren()) { String source = gb.getSource(); list.add(source); } assertEquals(asList("a(?:b)?", "c"), list); }
public GroupBuilder getGroupBuilder() { return groupBuilder; }
TreeRegexp { public GroupBuilder getGroupBuilder() { return groupBuilder; } }
TreeRegexp { public GroupBuilder getGroupBuilder() { return groupBuilder; } TreeRegexp(String regexp);   TreeRegexp(Pattern pattern); }
TreeRegexp { public GroupBuilder getGroupBuilder() { return groupBuilder; } TreeRegexp(String regexp);   TreeRegexp(Pattern pattern); GroupBuilder getGroupBuilder(); }
TreeRegexp { public GroupBuilder getGroupBuilder() { return groupBuilder; } TreeRegexp(String regexp);   TreeRegexp(Pattern pattern); GroupBuilder getGroupBuilder();  }