IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
JarModuleReference.cs
Go to the documentation of this file.
1using System;
2using System.IO;
3
5{
6
10 class JarModuleReference : ModuleReference
11 {
12
13 readonly RuntimeVersion _runtimeVersion;
14
21 public JarModuleReference(ModuleDescriptor descriptor, RuntimeVersion runtimeVersion, string file) :
22 base(descriptor, Path.GetFullPath(file))
23 {
24 _runtimeVersion = runtimeVersion;
25 }
26
28 public override ModuleReader Open() => new JarModuleReader(Location ?? throw new InvalidOperationException(), _runtimeVersion);
29
30 }
31
32}
A ModuleReader for a modular JAR file.
Represents a reference to a modular JAR file.
JarModuleReference(ModuleDescriptor descriptor, RuntimeVersion runtimeVersion, string file)
Initializes a new instance.
Provides access to the content of a module.