- java.lang.Object
-
- swim.vm.js.JsHostClass
-
- All Implemented Interfaces:
org.graalvm.polyglot.proxy.Proxy,org.graalvm.polyglot.proxy.ProxyInstantiable,org.graalvm.polyglot.proxy.ProxyObject
public class JsHostClass extends Object implements org.graalvm.polyglot.proxy.ProxyObject, org.graalvm.polyglot.proxy.ProxyInstantiable
-
-
Constructor Summary
Constructors Constructor Description JsHostClass(JsBridge bridge, HostClassType<?> type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetMember(String key)ObjectgetMemberKeys()booleanhasMember(String key)ObjectnewInstance(org.graalvm.polyglot.Value... guestArguments)voidputMember(String key, org.graalvm.polyglot.Value guestValue)booleanremoveMember(String key)StringtoString()
-
-
-
Constructor Detail
-
JsHostClass
public JsHostClass(JsBridge bridge, HostClassType<?> type)
-
-
Method Detail
-
hasMember
public boolean hasMember(String key)
- Specified by:
hasMemberin interfaceorg.graalvm.polyglot.proxy.ProxyObject
-
getMember
public Object getMember(String key)
- Specified by:
getMemberin interfaceorg.graalvm.polyglot.proxy.ProxyObject
-
putMember
public void putMember(String key, org.graalvm.polyglot.Value guestValue)
- Specified by:
putMemberin interfaceorg.graalvm.polyglot.proxy.ProxyObject
-
removeMember
public boolean removeMember(String key)
- Specified by:
removeMemberin interfaceorg.graalvm.polyglot.proxy.ProxyObject
-
getMemberKeys
public Object getMemberKeys()
- Specified by:
getMemberKeysin interfaceorg.graalvm.polyglot.proxy.ProxyObject
-
newInstance
public Object newInstance(org.graalvm.polyglot.Value... guestArguments)
- Specified by:
newInstancein interfaceorg.graalvm.polyglot.proxy.ProxyInstantiable
-
-