public class PythonScriptExecutor extends AbstractScriptExecutor
ScriptExecutor。Jython 実装を使用したスクリプト評価では、x=2 などの正規変数式の null 戻り値が得られます。回避策として、スクリプトの評価に続いて明示的に "x" の値を取得する必要があります。このクラスは、スクリプトの最後の行で単純な解析を実行して、変数名がある場合はそれを取得し、その値を返します。
| 修飾子と型 | クラスと説明 |
|---|---|
static class | PythonScriptExecutor.PythonVariableParser |
logger| コンストラクターと説明 |
|---|
PythonScriptExecutor() |
| 修飾子と型 | メソッドと説明 |
|---|---|
protected ObjectSE | postProcess(ObjectSE result, ScriptEngineSE scriptEngine, StringSE script, BindingsSE bindings) サブクラスはこれを実装して、必要な特別な処理を提供できます。 |
executeScript, getScriptEnginecloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEexecuteScriptprotected ObjectSE postProcess(ObjectSE result, ScriptEngineSE scriptEngine, StringSE script, BindingsSE bindings)
AbstractScriptExecutorAbstractScriptExecutor の postProcess result - 結果。scriptEngine - そのエンジン。script - スクリプト。bindings - バインディング。