]> gerrit.simantics Code Review - simantics/platform.git/blob
8b36a8148f794f31164c3422cf56b65e955a8cb3
[simantics/platform.git] /
1 package org.simantics.scl.compiler.internal.codegen.types;
2
3 import org.cojen.classfile.TypeDesc;
4
5 public class RuntimeJavaReferenceValidator extends AbstractRuntimeJavaReferenceValidator {
6
7     ClassLoader classLoader;
8     
9     public RuntimeJavaReferenceValidator(ClassLoader classLoader) {
10         this.classLoader = classLoader;
11     }
12
13     @Override
14     public Class<?> findClass(TypeDesc name) {
15         return name.toClass(classLoader);
16     }
17     
18 }