IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
RandomAccessFileAccessor.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 RandomAccessFileAccessor : Accessor<object>
12 {
13
14 Type ikvmInternalCallerID;
15
16 FieldAccessor<object, object> fd;
17 MethodAccessor<Func<object>> ___getCallerID_;
18
23 public RandomAccessFileAccessor(AccessorTypeResolver resolver) :
24 base(resolver, "java.io.RandomAccessFile")
25 {
26
27 }
28
29 Type IkvmInternalCallerID => Resolve(ref ikvmInternalCallerID, "ikvm.internal.CallerID");
30
36 public object GetFd(object self) => GetField(ref fd, nameof(fd)).GetValue(self);
37
44 public void SetFd(object self, object value) => GetField(ref fd, nameof(fd)).SetValue(self, value);
45
50 public object InvokeGetCallerID() => GetMethod(ref ___getCallerID_, "__<GetCallerID>", IkvmInternalCallerID).Invoker();
51
52 }
53
54#endif
55
56}
IKVM.Reflection.Type Type