package org.simantics.scl.commands.internal.serialization; import org.simantics.db.Resource; import org.simantics.scl.commands.internal.StringConverterFactory; import org.simantics.scl.compiler.errors.CompilationErrorFormatter; import org.simantics.scl.compiler.module.repository.ImportFailureException; import org.simantics.scl.compiler.top.SCLExpressionCompilationException; import org.simantics.scl.compiler.types.Type; import org.simantics.scl.runtime.function.Function; import org.simantics.scl.runtime.function.Function2; public class CommandSerializerFactory { @SuppressWarnings("unchecked") public static CommandSerializer create(String name, Type[] parameterTypes) { Function2[] stringConverters = new Function[parameterTypes.length]; for(int i=0;i