1 package org.simantics.scl.compiler.internal.codegen.utils;
3 import org.simantics.scl.compiler.internal.codegen.types.JavaTypeTranslator;
4 import org.simantics.scl.compiler.runtime.MutableClassLoader;
6 public class TransientClassBuilder {
7 public final MutableClassLoader classLoader;
8 public final JavaTypeTranslator javaTypeTranslator;
10 public TransientClassBuilder(MutableClassLoader classLoader,
11 JavaTypeTranslator javaTypeTranslator) {
12 if(classLoader == null)
13 throw new NullPointerException();
14 if(javaTypeTranslator == null)
15 throw new NullPointerException();
16 this.classLoader = classLoader;
17 this.javaTypeTranslator = javaTypeTranslator;