- java.lang.Object
-
- swim.dynamic.Bridge
-
- swim.vm.VmBridge
-
-
Constructor Summary
Constructors Constructor Description VmBridge(HostRuntime hostRuntime, String guestLanguage)
-
Method Summary
-
-
-
Constructor Detail
-
VmBridge
public VmBridge(HostRuntime hostRuntime, String guestLanguage)
-
-
Method Detail
-
hostRuntime
public final HostRuntime hostRuntime()
- Specified by:
hostRuntime
in classBridge
-
guestLanguage
public final String guestLanguage()
- Specified by:
guestLanguage
in classBridge
-
setGuestLanguage
protected void setGuestLanguage(String guestLanguage)
-
getHostLibrary
public HostLibrary getHostLibrary(String libraryName)
- Specified by:
getHostLibrary
in classBridge
-
hostLibraries
public Collection<HostLibrary> hostLibraries()
- Specified by:
hostLibraries
in classBridge
-
getHostPackage
public HostPackage getHostPackage(String packageName)
- Specified by:
getHostPackage
in classBridge
-
hostPackages
public Collection<HostPackage> hostPackages()
- Specified by:
hostPackages
in classBridge
-
getHostType
public HostType<?> getHostType(Class<?> typeClass)
- Specified by:
getHostType
in classBridge
-
hostTypes
public Collection<HostType<?>> hostTypes()
-
isNativeHostClass
public boolean isNativeHostClass(Class<?> hostClass)
-
hostType
public final <T> HostType<? super T> hostType(T hostValue)
-
hostTypedValueToGuestProxy
public <T> Object hostTypedValueToGuestProxy(HostType<? super T> hostType, T hostValue)
-
hostToGuest
public Object hostToGuest(Object hostValue)
- Specified by:
hostToGuest
in classBridge
-
guestToHost
public Object guestToHost(Object guestValue)
- Specified by:
guestToHost
in classBridge
-
hostMethodToGuestMethod
public <T> Object hostMethodToGuestMethod(HostMethod<? super T> method, T self)
-
hostStaticMethodToGuestStaticMethod
public Object hostStaticMethodToGuestStaticMethod(HostStaticMethod staticMethod)
-
guestCanExecute
public boolean guestCanExecute(Object guestFunction)
- Specified by:
guestCanExecute
in classBridge
-
guestExecute
public Object guestExecute(Object guestFunction, Object... hostArguments)
- Specified by:
guestExecute
in classBridge
-
guestExecuteVoid
public void guestExecuteVoid(Object guestFunction, Object... hostArguments)
- Specified by:
guestExecuteVoid
in classBridge
-
guestCanInvokeMember
public boolean guestCanInvokeMember(Object guestObject, String member)
- Specified by:
guestCanInvokeMember
in classBridge
-
-