- java.lang.Object
-
- swim.vm.js.JsRequireFunction
-
- All Implemented Interfaces:
org.graalvm.polyglot.proxy.Proxy
,org.graalvm.polyglot.proxy.ProxyExecutable
,org.graalvm.polyglot.proxy.ProxyObject
public class JsRequireFunction extends Object implements org.graalvm.polyglot.proxy.ProxyExecutable, org.graalvm.polyglot.proxy.ProxyObject
-
-
Constructor Summary
Constructors Constructor Description JsRequireFunction(JsGuestModule module)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
execute(org.graalvm.polyglot.Value... arguments)
Object
getMember(String key)
Object
getMemberKeys()
boolean
hasMember(String key)
JsGuestModule
module()
void
putMember(String key, org.graalvm.polyglot.Value value)
boolean
removeMember(String key)
-
-
-
Constructor Detail
-
JsRequireFunction
public JsRequireFunction(JsGuestModule module)
-
-
Method Detail
-
module
public final JsGuestModule module()
-
execute
public Object execute(org.graalvm.polyglot.Value... arguments)
- Specified by:
execute
in interfaceorg.graalvm.polyglot.proxy.ProxyExecutable
-
hasMember
public boolean hasMember(String key)
- Specified by:
hasMember
in interfaceorg.graalvm.polyglot.proxy.ProxyObject
-
getMember
public Object getMember(String key)
- Specified by:
getMember
in interfaceorg.graalvm.polyglot.proxy.ProxyObject
-
putMember
public void putMember(String key, org.graalvm.polyglot.Value value)
- Specified by:
putMember
in interfaceorg.graalvm.polyglot.proxy.ProxyObject
-
removeMember
public boolean removeMember(String key)
- Specified by:
removeMember
in interfaceorg.graalvm.polyglot.proxy.ProxyObject
-
getMemberKeys
public Object getMemberKeys()
- Specified by:
getMemberKeys
in interfaceorg.graalvm.polyglot.proxy.ProxyObject
-
-