46 readonly
bool bootstrap;
64 this.context = context;
65 this.bootstrap = bootstrap;
67 if (bootstrap &&
Throwable.TypeAsBaseType is TypeBuilder)
75 public RuntimeJavaType
Throwable => context.JavaBase.TypeOfjavaLangThrowable;
83 public MethodInfo GetTypeFromHandleMethod => getTypeFromHandleMethod ??= context.Types.Type.GetMethod(
"GetTypeFromHandle", BindingFlags.Static | BindingFlags.Public,
null, [context.Types.RuntimeTypeHandle],
null);
85 public MethodInfo GetTypeMethod => getTypeMethod ??= context.Types.Object.GetMethod(
"GetType", BindingFlags.Public | BindingFlags.Instance,
null,
Type.EmptyTypes,
null);
87 public MethodInfo KeepAliveMethod => keepAliveMethod ??= context.Resolver.ResolveCoreType(typeof(GC).FullName).AsReflection().GetMethod(
"KeepAlive", BindingFlags.Static | BindingFlags.Public,
null, [context.Types.Object],
null);
89 public RuntimeJavaMethod GetClassFromTypeHandle => getClassFromTypeHandle ??= context.ClassLoaderFactory.LoadClassCritical(
"ikvm.runtime.Util").GetMethod(
"getClassFromTypeHandle",
"(Lcli.System.RuntimeTypeHandle;)Ljava.lang.Class;",
false);
91 public RuntimeJavaMethod GetClassFromTypeHandle2 => getClassFromTypeHandle2 ??= context.ClassLoaderFactory.LoadClassCritical(
"ikvm.runtime.Util").GetMethod(
"getClassFromTypeHandle",
"(Lcli.System.RuntimeTypeHandle;I)Ljava.lang.Class;",
false);
Maintains services relevant to an instane of the IKVM runtime.