Package blue.contract.utils
Class JSExecutor
java.lang.Object
blue.contract.utils.JSExecutor
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interfacestatic classstatic classstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
JSExecutor
public JSExecutor(blue.language.Blue blue)
-
-
Method Details
-
executeScript
- Throws:
JSExecutor.JSException
-
executeExpression
public Object executeExpression(String code, Map<String, Object> bindings) throws JSExecutor.JSException- Throws:
JSExecutor.JSException
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
createJavaFunction
public org.graalvm.polyglot.proxy.ProxyExecutable createJavaFunction(JSExecutor.JavaScriptCallback callback)
-