クラス AbstractScriptExecutor
java.lang.ObjectSE
org.springframework.integration.scripting.jsr223.AbstractScriptExecutor
- 実装されたすべてのインターフェース:
ScriptExecutor
- 既知の直属サブクラス
DefaultScriptExecutor
,PythonScriptExecutor
ScriptExecutor
の基本クラス。- 導入:
- 2.1
- 作成者:
- David Turanski, Mark Fisher, Artem Bilan, Gary Russell, Ngoc Nhan
フィールドのサマリー
フィールドコンストラクターの概要
コンストラクター修飾子コンストラクター説明protected
AbstractScriptExecutor
(StringSE language) protected
AbstractScriptExecutor
(ScriptEngineSE scriptEngine) メソッドのサマリー
修飾子と型メソッド説明executeScript
(ScriptSource scriptSource, MapSE<StringSE, ObjectSE> variables) オプションのバインディングvariables
を使用して、提供されたScriptSource
からスクリプトを実行します。protected abstract ObjectSE
postProcess
(ObjectSE result, ScriptEngineSE scriptEngine, StringSE script, BindingsSE bindings) サブクラスはこれを実装して、必要な特別な処理を提供できます。クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
インターフェース org.springframework.integration.scripting.ScriptExecutor から継承されたメソッド
executeScript
フィールドの詳細
logger
コンストラクターの詳細
AbstractScriptExecutor
AbstractScriptExecutor
メソッドの詳細
getScriptEngine
executeScript
@Nullable public ObjectSE executeScript(ScriptSource scriptSource, MapSE<StringSE, ObjectSE> variables) インターフェースからコピーされた説明:ScriptExecutor
オプションのバインディングvariables
を使用して、提供されたScriptSource
からスクリプトを実行します。- 次で指定:
- インターフェース
ScriptExecutor
のexecuteScript
- パラメーター:
scriptSource
- スクリプトソース。variables
- 変数。- 戻り値:
- 実行の結果。
postProcess
protected abstract ObjectSE postProcess(ObjectSE result, ScriptEngineSE scriptEngine, StringSE script, BindingsSE bindings) サブクラスはこれを実装して、必要な特別な処理を提供できます。- パラメーター:
result
- 結果。scriptEngine
- そのエンジン。script
- スクリプト。bindings
- バインディング。- 戻り値:
- 変更された結果