public abstract class AbstractScriptExecutor extends ObjectSE implements ScriptExecutor
ScriptExecutor の基本クラス。| 修飾子 | コンストラクターと説明 |
|---|---|
protected | AbstractScriptExecutor(ScriptEngineSE scriptEngine) |
protected | AbstractScriptExecutor(StringSE language) |
| 修飾子と型 | メソッドと説明 |
|---|---|
ObjectSE | executeScript(ScriptSource scriptSource, MapSE<StringSE, ObjectSE> variables) オプションのバインディング variables を使用して、提供された ScriptSource からスクリプトを実行します。 |
ScriptEngineSE | getScriptEngine() |
protected abstract ObjectSE | postProcess(ObjectSE result, ScriptEngineSE scriptEngine, StringSE script, BindingsSE bindings) サブクラスはこれを実装して、必要な特別な処理を提供できます。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEexecuteScriptprotected final Log logger
protected AbstractScriptExecutor(StringSE language)
protected AbstractScriptExecutor(ScriptEngineSE scriptEngine)
public ScriptEngineSE getScriptEngine()
@Nullable public ObjectSE executeScript(ScriptSource scriptSource, MapSE<StringSE,ObjectSE> variables)
ScriptExecutorvariables を使用して、提供された ScriptSource からスクリプトを実行します。ScriptExecutor 内の executeScript scriptSource - スクリプトソース。variables - 変数。protected abstract ObjectSE postProcess(ObjectSE result, ScriptEngineSE scriptEngine, StringSE script, BindingsSE bindings)
result - 結果。scriptEngine - そのエンジン。script - スクリプト。bindings - バインディング。