303132333435363738
this.c = c; } @Override public void addParametersTo(ShapeParameters tmp) { Generator g = getGenerator(); tmp.constants.put(g, c); tmp.generators.put(id, g); }
11121314151617
*/ public class RuleToGeneratorTransformer implements Transformer<Rule, Generator>{ public Generator transform(Rule rule) { final RuleGraph graph = new RuleToRuleGraphTransformer().transform(rule); return new Generator(graph); }