IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
IteratorAccessor.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 IteratorAccessor : Accessor<object>
12 {
13
14 MethodAccessor<Func<object, bool>> hasNext;
15 MethodAccessor<Func<object, object>> next;
16
21 public IteratorAccessor(AccessorTypeResolver resolver) :
22 base(resolver, "java.util.Iterator")
23 {
24
25 }
26
32 public bool InvokeHasNext(object self) => GetMethod(ref hasNext, nameof(hasNext), typeof(bool)).Invoker(self);
33
39 public object InvokeNext(object self) => GetMethod(ref next, nameof(next), typeof(object)).Invoker(self);
40
41 }
42
43#endif
44
45}