private void addToTarget(String s, PatternExpanderTarget target, TreeFlag flag) { // no, do we have a section after us? if (next != null) { // yes, give the next section this request next.expandAllToTarget(s, target, flag); } else { // no, tell the target to add this string. target.add(s, flag); } }
private void iterateAllCombinations(TreeFlag flags) { sections.expandAllToTarget("", getTarget(), flags); }