public final class ExecutorScriptRunner extends Object implements ScriptRunner, AutoCloseable
| Modifier and Type | Class and Description |
|---|---|
class |
ExecutorScriptRunner.AsyncInternal |
class |
ExecutorScriptRunner.SyncInternal |
ScriptRunner.End, ScriptRunner.Engine| Modifier and Type | Field and Description |
|---|---|
static String |
CALL_FUNCTION_NAME |
static String |
UNICITY_PREFIX |
| Constructor and Description |
|---|
ExecutorScriptRunner() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
ScriptRunner.Engine |
engine() |
static com.google.gson.JsonElement |
jsonBoolean(boolean b) |
static com.google.gson.JsonElement |
jsonNumber(Number b) |
static com.google.gson.JsonElement |
jsonString(String b) |
void |
prepare(String script,
ScriptRunner.End end) |
void |
register(String function,
AsyncScriptFunction asyncFunction) |
void |
register(String function,
SyncScriptFunction syncFunction) |
public static final String CALL_FUNCTION_NAME
public static final String UNICITY_PREFIX
public void close()
close in interface ScriptRunnerclose in interface AutoCloseablepublic void register(String function, SyncScriptFunction syncFunction)
register in interface ScriptRunnerpublic void register(String function, AsyncScriptFunction asyncFunction)
register in interface ScriptRunnerpublic void prepare(String script, ScriptRunner.End end)
prepare in interface ScriptRunnerpublic ScriptRunner.Engine engine()
engine in interface ScriptRunnerpublic static com.google.gson.JsonElement jsonString(String b)
public static com.google.gson.JsonElement jsonNumber(Number b)
public static com.google.gson.JsonElement jsonBoolean(boolean b)
Copyright © 2015. All rights reserved.