IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
ProcessBuilderRedirectAccessor.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 ProcessBuilderRedirectAccessor : Accessor<object>
12 {
13
14 FieldAccessor<object> PIPE;
15 FieldAccessor<object> INHERIT;
16
17 MethodAccessor<Func<object, object>> file;
18 MethodAccessor<Func<object, bool>> append;
19
24 public ProcessBuilderRedirectAccessor(AccessorTypeResolver resolver) :
25 base(resolver, "java.lang.ProcessBuilder+Redirect")
26 {
27
28 }
29
34 public object GetPipe() => GetField(ref PIPE, nameof(PIPE)).GetValue();
35
40 public object GetInherit() => GetField(ref INHERIT, nameof(INHERIT)).GetValue();
41
47 public object InvokeFile(object self) => GetMethod(ref file, nameof(file), Resolve("java.io.File")).Invoker(self);
48
54 public bool InvokeAppend(object self) => GetMethod(ref append, nameof(append), typeof(bool)).Invoker(self);
55
56 }
57
58#endif
59
60}