1 package org.simantics.scl.compiler.runtime;
5 import org.simantics.scl.compiler.constants.Constant;
7 import gnu.trove.map.hash.THashMap;
9 public interface MutableClassLoader {
11 public static final String SCL_PACKAGE_PREFIX = "scl.";
12 public static final int SCL_PACKAGE_PREFIX_LENGTH = SCL_PACKAGE_PREFIX.length();
14 void addClasses(Map<String, byte[]> classes);
15 Class<?> loadClass(String className) throws ClassNotFoundException;
16 String getFreshPackageName();
17 THashMap<Constant, Object> getConstantCache();
18 ClassLoader getClassLoader();
19 byte[] getBytes(String className);