stringtemplateファイルに次のコードがあります。
(1) Module $component$ = new Module(new GeometryDescription[] {$shapes;separator=", "$});
私が欲しいのはこの行の複数を生成できるようにすることなので、私は間違っていると知っています
コンポーネントのリストをComponent1(North、part1、part2)Component2(North、part1、part2、part3)と呼ぶと、次のようになります。
Module North = new Module(new GeometryDescription[] {part1,part2});
Module South = new Module(new GeometryDescription[] {part1,part2,part3});
どうすればそのおかげでできるように文(1)を書くことができますか