Search in sources :

Example 1 with LibraryClassSource

use of org.mapleir.app.service.LibraryClassSource in project maple-ir by LLVM-but-worse.

the class Boot method rt.

private static LibraryClassSource rt(ApplicationClassSource app, File rtjar) throws IOException {
    section("Loading rt.jar from " + rtjar.getAbsolutePath());
    SingleJarDownloader<ClassNode> dl = new SingleJarDownloader<>(new JarInfo(rtjar));
    dl.download();
    return new LibraryClassSource(app, dl.getJarContents().getClassContents());
}
Also used : ClassNode(org.objectweb.asm.tree.ClassNode) JarInfo(org.topdank.byteengineer.commons.data.JarInfo) LibraryClassSource(org.mapleir.app.service.LibraryClassSource) SingleJarDownloader(org.topdank.byteio.in.SingleJarDownloader)

Aggregations

LibraryClassSource (org.mapleir.app.service.LibraryClassSource)1 ClassNode (org.objectweb.asm.tree.ClassNode)1 JarInfo (org.topdank.byteengineer.commons.data.JarInfo)1 SingleJarDownloader (org.topdank.byteio.in.SingleJarDownloader)1