26using System.Reflection;
31using System.Runtime.Loader;
43 throw new NotImplementedException();
45 using var mem =
new MemoryStream();
46 JVM.Context.
StubGenerator.Write(mem, RuntimeJavaType.FromClass(c),
true,
true,
true,
true,
false);
54 throw new NotImplementedException();
57 resource = resource.Substring(1);
58 var mangledName =
JVM.MangleResourceName(resource);
59 var info =
asm.GetManifestResourceInfo(mangledName);
60 if (info !=
null && info.FileName !=
null)
61 return asm.GetManifestResourceStream(mangledName);
63 var s =
asm.GetManifestResourceStream(mangledName);
67 throw new FileNotFoundException(
"resource " + resource +
" not found in assembly " +
asm.FullName);
77 return new System.IO.Compression.DeflateStream(s,
System.IO.Compression.CompressionMode.Decompress,
false);
80 throw new IOException(
"Unsupported resource encoding for resource " + resource +
" found in assembly " +
asm.FullName);
88 throw new NotImplementedException();
92 return tw.ClassObject;
110 throw new NotImplementedException();
IKVM.Reflection.Assembly Assembly
IKVM.Reflection.AssemblyName AssemblyName
static Stream ReadResourceFromAssemblyImpl(Assembly asm, string resource)
static object LoadClassFromAssembly(Assembly asm, string className)
static global::java.lang.ClassLoader GetGenericClassLoaderById(int id)
static byte[] GenerateStub(global::java.lang.Class c)
static Assembly LoadAssembly(string name)
Main state of the running JVM.
RuntimeAssemblyClassLoader FromAssembly(Assembly assembly)
Obtains the RuntimeAssemblyClassLoader for the given Assembly. This method should not be used with dy...
IDiagnosticHandler Diagnostics
Gets the IDiagnosticHandler where events should be sent.
StubGenerator StubGenerator
Gets the StubGenerator associated with this instance of the runtime.
RuntimeAssemblyClassLoaderFactory AssemblyClassLoaderFactory
Gets the RuntimeAssemblyClassLoaderFactory associated with this instance of the runtime.
RuntimeClassLoaderFactory ClassLoaderFactory
Gets the RuntimeClassLoaderFactory associated with this instance of the runtime.
void GenericClassLoadingInfo(string arg0)
The 'GenericClassLoadingInfo' diagnostic.
void GenericClassLoadingError(string arg0)
The 'GenericClassLoadingError' diagnostic.
void GenericClassLoadingWarning(string arg0)
The 'GenericClassLoadingWarning' diagnostic.