IKVM11
11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
RuntimeInit.cs
Go to the documentation of this file.
1
using
System.Linq;
2
using
System.Reflection;
3
using
System.Runtime.CompilerServices
;
4
5
using
IKVM.Attributes
;
6
7
namespace
IKVM.Runtime
8
{
9
13
static
class
RuntimeInit
14
{
15
16
#if FIRST_PASS == false && IMPORTER == false && EXPORTER == false
17
21
#pragma warning disable CA2255
22
[
ModuleInitializer
]
23
#pragma warning restore CA2255
24
internal
static
void
Init()
25
{
26
// if our entry point is a Java application it will initialize the JVM as part of the launcher
27
var isJavaApp =
Assembly
.GetEntryAssembly()?.ManifestModule?.GetCustomAttributes<
JavaModuleAttribute
>().Any() ??
false
;
28
if
(isJavaApp ==
false
)
29
JVM
.Init();
30
}
31
32
#endif
33
34
}
35
36
}
Assembly
IKVM.Reflection.Assembly Assembly
Definition
IkvmReflectionAssemblySymbol.cs:7
IKVM.Attributes.JavaModuleAttribute
Definition
JavaModuleAttribute.cs:33
IKVM.Runtime.JVM
Main state of the running JVM.
Definition
JVM.Resolver.cs:18
IKVM.Runtime.RuntimeInit
Initializes the JVM at module load.
Definition
RuntimeInit.cs:14
IKVM.Attributes
Definition
AccessStub.cs:27
IKVM.Runtime
Definition
Accessor.cs:5
IKVM.Runtime.MemberFlags.ModuleInitializer
@ ModuleInitializer
Member is a module initializer method.
System.Runtime.CompilerServices
Definition
CompilerFeatureRequiredAttribute.cs:5
src
IKVM.Runtime
RuntimeInit.cs
Generated by
1.12.0