]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/internal/codegen/utils/TransientClassBuilder.java
Merge "Make it possible to debug SCL compiler in production builds"
[simantics/platform.git] / bundles / org.simantics.scl.compiler / src / org / simantics / scl / compiler / internal / codegen / utils / TransientClassBuilder.java
1 package org.simantics.scl.compiler.internal.codegen.utils;
2
3 import org.simantics.scl.compiler.internal.codegen.types.JavaTypeTranslator;
4 import org.simantics.scl.compiler.runtime.MutableClassLoader;
5
6 public class TransientClassBuilder {
7     public final MutableClassLoader classLoader;
8     public final JavaTypeTranslator javaTypeTranslator;
9
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;
18     }
19 }