- java.lang.Object
-
- swim.vm.js.JsHostLibraryModule
-
-
Constructor Summary
Constructors Constructor Description JsHostLibraryModule(JsBridge bridge, JsModuleSystem moduleSystem, UriPath moduleId, HostLibrary library)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
evalModule()
Object
getMember(String key)
Object
getMemberKeys()
boolean
hasMember(String key)
org.graalvm.polyglot.Value
moduleExports()
UriPath
moduleId()
JsModuleSystem
moduleSystem()
void
putMember(String key, org.graalvm.polyglot.Value guestValue)
boolean
removeMember(String key)
-
-
-
Constructor Detail
-
JsHostLibraryModule
public JsHostLibraryModule(JsBridge bridge, JsModuleSystem moduleSystem, UriPath moduleId, HostLibrary library)
-
-
Method Detail
-
moduleSystem
public final JsModuleSystem moduleSystem()
- Specified by:
moduleSystem
in interfaceJsModule
-
moduleExports
public org.graalvm.polyglot.Value moduleExports()
- Specified by:
moduleExports
in interfaceJsModule
-
evalModule
public void evalModule()
- Specified by:
evalModule
in interfaceJsModule
-
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 guestValue)
- 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
-
-