private static CodegenExpression makeOpFactories(Map<Integer, DataFlowOperatorForge> operatorFactories, CodegenMethodScope parent, SAIFFInitializeSymbol symbols, CodegenClassScope classScope) {
CodegenMethod method = parent.makeChild(Map.class, DataflowDescForge.class, classScope);
method.getBlock().declareVar(Map.class, "fac", newInstance(HashMap.class, constant(CollectionUtil.capacityHashMap(operatorFactories.size()))));
for (Map.Entry<Integer, DataFlowOperatorForge> entry : operatorFactories.entrySet()) {
method.getBlock().exprDotMethod(ref("fac"), "put", constant(entry.getKey()), entry.getValue().make(method, symbols, classScope));
}
method.getBlock().methodReturn(ref("fac"));
return localMethod(method);
}