IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
DotNetPathAccessor.cs
Go to the documentation of this file.
1using System;
2
4{
5
6#if FIRST_PASS == false && EXPORTER == false && IMPORTER == false
7
8 internal sealed class DotNetPathAccessor : Accessor<object>
9 {
10
11 MethodAccessor<Func<object, string, object>> init;
12 FieldAccessor<object, object> fs;
13 FieldAccessor<object, string> path;
14
19 public DotNetPathAccessor(AccessorTypeResolver resolver) :
20 base(resolver, "sun.nio.fs.DotNetPath")
21 {
22
23 }
24
31 public object Init(object fs, string path) => GetConstructor(ref init, Resolve("sun.nio.fs.DotNetFileSystem"), typeof(string)).Invoker(fs, path);
32
38 public object GetFs(object self) => GetField(ref fs, nameof(fs)).GetValue(self);
39
45 public string GetPath(object self) => GetField(ref path, nameof(path)).GetValue(self);
46
47 }
48
49#endif
50
51}