Module swim.dynamic
Package swim.dynamic

Class Bridge

  • Direct Known Subclasses:
    VmBridge

    public abstract class Bridge
    extends Object
    Interface between a guest language execution environment and a host runtime.
    • Constructor Detail

      • Bridge

        public Bridge()
    • Method Detail

      • hostRuntime

        public abstract HostRuntime hostRuntime()
      • guestLanguage

        public abstract String guestLanguage()
      • getHostLibrary

        public abstract HostLibrary getHostLibrary​(String libraryName)
      • getHostPackage

        public abstract HostPackage getHostPackage​(String packageName)
      • getHostType

        public abstract HostType<?> getHostType​(Class<?> typeClass)
      • hostType

        public abstract <T> HostType<? super T> hostType​(T hostValue)
      • hostToGuest

        public abstract Object hostToGuest​(Object hostValue)
      • guestToHost

        public abstract Object guestToHost​(Object guestValue)
      • guestCanExecute

        public abstract boolean guestCanExecute​(Object guestFunction)
      • guestExecute

        public abstract Object guestExecute​(Object guestFunction,
                                            Object... arguments)
      • guestExecuteVoid

        public abstract void guestExecuteVoid​(Object guestFunction,
                                              Object... arguments)
      • guestCanInvokeMember

        public abstract boolean guestCanInvokeMember​(Object guestObject,
                                                     String member)
      • guestInvokeMember

        public abstract Object guestInvokeMember​(Object guestObject,
                                                 String member,
                                                 Object... arguments)