use of dyvilx.tools.compiler.DyvilCompiler in project Dyvil by Dyvil.
the class Package method loadClass.
public static IClass loadClass(String fileName, Name name, IClassConsumer consumer) {
final DyvilCompiler compiler = rootPackage.compiler;
for (Library library : compiler.config.libraries) {
final InputStream inputStream = library.getInputStream(fileName);
if (inputStream != null) {
final ExternalClass externalClass = new ExternalClass(name);
consumer.addClass(externalClass);
return ClassReader.loadClass(compiler, externalClass, inputStream);
}
}
return null;
}
Aggregations