- java.lang.Object
-
- swim.vm.VmHostProxy<T>
-
- swim.vm.js.JsHostObject<T>
-
- All Implemented Interfaces:
org.graalvm.polyglot.proxy.Proxy
,org.graalvm.polyglot.proxy.ProxyObject
public class JsHostObject<T> extends VmHostProxy<T> implements org.graalvm.polyglot.proxy.ProxyObject
-
-
Constructor Summary
Constructors Constructor Description JsHostObject(JsBridge bridge, HostObjectType<? super T> type, T self)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getMember(String key)
Object
getMemberKeys()
boolean
hasMember(String key)
void
putMember(String key, org.graalvm.polyglot.Value guestValue)
boolean
removeMember(String key)
T
unwrap()
-
-
-
Constructor Detail
-
JsHostObject
public JsHostObject(JsBridge bridge, HostObjectType<? super T> type, T self)
-
-
Method Detail
-
unwrap
public final T unwrap()
- Specified by:
unwrap
in classVmHostProxy<T>
-
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
-
-