Пример #1
0
 @Override
 public String apply(IGeneratorFragment from) {
   if (from instanceof CompositeGeneratorFragment) {
     return Strings.toString(((CompositeGeneratorFragment) from).fragments, this, delim);
   }
   return from.getClass().getSimpleName();
 }
Пример #2
0
 @Override
 public void generate(Grammar grammar, XpandExecutionContext ctx) {
   if (LOG.isInfoEnabled()) {
     LOG.info(
         "generating infrastructure for "
             + grammar.getName()
             + " with fragments : "
             + Strings.toString(this.fragments, new ToStringFunction(", "), ", "));
   }
   super.generate(grammar, ctx);
 }