6#if FIRST_PASS == false && EXPORTER == false && IMPORTER == false
11 internal sealed class SecurityManagerAccessor : Accessor<object>
14 MethodAccessor<Action<object, string>> checkRead;
15 MethodAccessor<Action<object, string>> checkWrite;
16 MethodAccessor<Action<object, string>> checkDelete;
17 MethodAccessor<Action<object, string>> checkExec;
18 MethodAccessor<Action<object, string, int>> checkAccept;
24 public SecurityManagerAccessor(AccessorTypeResolver resolver) :
25 base(resolver,
"java.lang.SecurityManager")
33 public void InvokeCheckRead(
object self,
string path) => GetMethod(
ref checkRead, nameof(checkRead), typeof(
void), typeof(
string)).Invoker(
self, path);
38 public void InvokeCheckWrite(
object self,
string path) => GetMethod(
ref checkWrite, nameof(checkWrite), typeof(
void), typeof(
string)).Invoker(
self, path);
43 public void InvokeCheckDelete(
object self,
string path) => GetMethod(
ref checkDelete, nameof(checkDelete), typeof(
void), typeof(
string)).Invoker(
self, path);
48 public void InvokeCheckExec(
object self,
string path) => GetMethod(
ref checkExec, nameof(checkExec), typeof(
void), typeof(
string)).Invoker(
self, path);
53 public void InvokeCheckAccept(
object self,
string host,
int port) => GetMethod(
ref checkAccept, nameof(checkAccept), typeof(
void), typeof(
string), typeof(
int)).Invoker(
self, host, port);