Package com.intuit.karate.graal
Class JsEngine
java.lang.Object
com.intuit.karate.graal.JsEngine
- Author:
- pthomas3
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionorg.graalvm.polyglot.Valueattach(org.graalvm.polyglot.Value value) copy()eval(InputStream is) org.graalvm.polyglot.ValueevalForValue(String exp) static JsValuestatic JsValueevalGlobal(String src) org.graalvm.polyglot.Valueorg.graalvm.polyglot.Valueorg.graalvm.polyglot.Valuestatic Objectstatic org.graalvm.polyglot.Valuestatic KarateExceptionfromJsEvalException(String js, Exception e, String message) static JsEngineglobal()static JsEnginelocal()voidvoidstatic voidremove()voidtoString()
-
Field Details
-
context
public final org.graalvm.polyglot.Context context -
bindings
public final org.graalvm.polyglot.Value bindings
-
-
Method Details
-
evalGlobal
-
evalGlobal
-
global
-
remove
public static void remove() -
local
-
copy
-
attach
public org.graalvm.polyglot.Value attach(org.graalvm.polyglot.Value value) -
attachAll
-
eval
-
eval
-
eval
-
evalForValue
-
put
-
remove
-
putAll
-
get
-
execute
-
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
-
evalWith
-
fromJsEvalException
-
toString
-