public class KotlinScriptExecutor extends AbstractScriptExecutor
AbstractScriptExecutor
for the Kotlin scripts support.
Uses KotlinJsr223JvmLocalScriptEngineFactory
directly since there is
no META-INF/services/javax.script.ScriptEngineFactory
file in CLASSPATH.
Also sets an idea.use.native.fs.for.win
system property to false
to disable a native engine discovery for Windows: bay be resolved in the future Kotlin versions.logger
Constructor and Description |
---|
KotlinScriptExecutor() |
Modifier and Type | Method and Description |
---|---|
protected Object |
postProcess(Object result,
ScriptEngine scriptEngine,
String script,
Bindings bindings)
Subclasses may implement this to provide any special handling required
|
executeScript, getScriptEngine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeScript
protected Object postProcess(Object result, ScriptEngine scriptEngine, String script, Bindings bindings)
AbstractScriptExecutor
postProcess
in class AbstractScriptExecutor
result
- the result.scriptEngine
- the engine.script
- the script.bindings
- the bindings.