Пример #1
0
 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);
     }
 }
Пример #2
0
 private void iterateAllCombinations(TreeFlag flags)
 {
     sections.expandAllToTarget("", getTarget(), flags);
 }