IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
FileAccessor.cs
Go to the documentation of this file.
1using System;
2
4{
5
6#if FIRST_PASS == false && EXPORTER == false && IMPORTER == false
7
11 internal sealed class FileAccessor : Accessor<object>
12 {
13
14 MethodAccessor<Func<string, object>> init;
15 MethodAccessor<Func<object, string>> getPath;
16
21 public FileAccessor(AccessorTypeResolver resolver) :
22 base(resolver, "java.io.File")
23 {
24
25 }
26
32 public object Init(string path) => GetConstructor(ref init, typeof(string)).Invoker(path);
33
39 public string InvokeGetPath(object self) => GetMethod(ref getPath, nameof(getPath), typeof(string)).Invoker(self);
40
41 }
42
43#endif
44
45}