Class JsEngine


  • public class JsEngine
    extends Object
    Author:
    pthomas3
    • Field Detail

      • context

        public final org.graalvm.polyglot.Context context
      • bindings

        public final org.graalvm.polyglot.Value bindings
    • Method Detail

      • global

        public static JsEngine global()
      • remove

        public static void remove()
      • local

        public static JsEngine local()
      • evalForValue

        public org.graalvm.polyglot.Value evalForValue​(String exp)
      • remove

        public void remove​(String key)
      • execute

        public static Object execute​(org.graalvm.polyglot.proxy.ProxyExecutable function,
                                     Object... args)
      • execute

        public static org.graalvm.polyglot.Value execute​(org.graalvm.polyglot.Value function,
                                                         Object... args)
      • evalWith

        public org.graalvm.polyglot.Value evalWith​(org.graalvm.polyglot.Value value,
                                                   String src,
                                                   boolean returnValue)
      • evalWith

        public org.graalvm.polyglot.Value evalWith​(Map<String,​Object> variables,
                                                   String src,
                                                   boolean returnValue)
      • evalWith

        public org.graalvm.polyglot.Value evalWith​(Set<String> names,
                                                   java.util.function.Function<String,​Object> getVariable,
                                                   String src,
                                                   boolean returnValue)