Class ONashornScriptExecutor
java.lang.Object
com.orientechnologies.orient.core.command.script.OAbstractScriptExecutor
com.orientechnologies.orient.core.command.script.nashorn.ONashornScriptExecutor
- All Implemented Interfaces:
OScriptExecutor
Created by tglman on 25/01/17.
-
Field Summary
FieldsFields inherited from class com.orientechnologies.orient.core.command.script.OAbstractScriptExecutor
EMPTY_PARAMS, language -
Constructor Summary
ConstructorsConstructorDescriptionONashornScriptExecutor(String language, OrientDBEmbedded context, OScriptManager scriptManager, org.openjdk.nashorn.api.scripting.NashornScriptEngineFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcloseAll()execute(ODatabaseDocumentInternal database, String script, Object... params) execute(ODatabaseDocumentInternal database, String script, Map params) executeFunction(OCommandContext context, String functionName, Map<Object, Object> iArgs) static ObjecttransformResult(Object result) Manages cross compiler compatibility issues.Methods inherited from class com.orientechnologies.orient.core.command.script.OAbstractScriptExecutor
bind, bindContextVariables, preExecute, registerInterceptor, throwErrorMessage, unbind, unregisterInterceptor
-
Field Details
-
LINES_AROUND_ERROR
protected static final int LINES_AROUND_ERROR- See Also:
-
-
Constructor Details
-
ONashornScriptExecutor
public ONashornScriptExecutor(String language, OrientDBEmbedded context, OScriptManager scriptManager, org.openjdk.nashorn.api.scripting.NashornScriptEngineFactory factory)
-
-
Method Details
-
execute
-
execute
-
executeFunction
-
transformResult
Manages cross compiler compatibility issues.- Parameters:
result- Result to transform
-
close
-
closeAll
public void closeAll()
-