]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/runtime/MutableClassLoader.java
(refs #7245) The first version of decompiler for SCL compilations
[simantics/platform.git] / bundles / org.simantics.scl.compiler / src / org / simantics / scl / compiler / runtime / MutableClassLoader.java
1 package org.simantics.scl.compiler.runtime;
2
3 import java.util.Map;
4
5 import org.simantics.scl.compiler.constants.Constant;
6
7 import gnu.trove.map.hash.THashMap;
8
9 public interface MutableClassLoader {
10
11     public static final String SCL_PACKAGE_PREFIX = "scl.";
12     public static final int SCL_PACKAGE_PREFIX_LENGTH = SCL_PACKAGE_PREFIX.length();
13
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);
20
21 }