クラスStreamingExecutionControl
java.lang.Object
jdk.jshell.execution.StreamingExecutionControl
- すべての実装されたインタフェース:
AutoCloseable,ExecutionControl
- 直系の既知のサブクラス:
JdiExecutionControl
public class StreamingExecutionControl extends Object implements ExecutionControl
実行が実行されるリモート・エージェントにリクエストをストリームする
ExecutionControl実行エンジンSPIの実装。- 導入されたバージョン:
- 9
-
ネストされたクラスのサマリー
インタフェースjdk.jshell.spi.ExecutionControlで宣言されたネストされたクラス/インタフェース
ExecutionControl.ClassBytecodes, ExecutionControl.ClassInstallException, ExecutionControl.EngineTerminationException, ExecutionControl.ExecutionControlException, ExecutionControl.InternalException, ExecutionControl.NotImplementedException, ExecutionControl.ResolutionException, ExecutionControl.RunException, ExecutionControl.StoppedException, ExecutionControl.UserException -
コンストラクタのサマリー
コンストラクタ -
メソッドのサマリー
修飾子と型メソッド説明voidaddToClasspath(String path) 実行クラス・パスにパスを追加します。voidclose()実行エンジンを閉じます。extensionCommand(String command, Object arg) 非標準コマンド(新しいバージョンの標準コマンド)を実行します。指定されたラッパー・クラスのメソッドをコールして、実行可能スニペットを起動します。voidload(ExecutionControl.ClassBytecodes[] cbcs) 新しいクラスをロードしようとします。void以前にロードされたクラスの再定義を試みます。voidstop()実行中の呼出しを中断します。変数の値を返します。
-
コンストラクタの詳細
-
StreamingExecutionControl
public StreamingExecutionControl(ObjectOutput out, ObjectInput in) インスタンスを作成します。- パラメータ:
out- コマンドの出力in- コマンド・レスポンスの入力
-
-
メソッドの詳細
-
load
public void load(ExecutionControl.ClassBytecodes[] cbcs) throws ExecutionControl.ClassInstallException, ExecutionControl.NotImplementedException, ExecutionControl.EngineTerminationException インタフェース:ExecutionControlからコピーされた説明新しいクラスをロードしようとします。- 定義:
- インタフェース
ExecutionControl内のload - パラメータ:
cbcs- ロードするクラス名とバイトコード- スロー:
ExecutionControl.ClassInstallException- クラスのロード中に例外が発生しました。一部またはすべてがロードされていませんExecutionControl.NotImplementedException- 実装されていない場合ExecutionControl.EngineTerminationException- 実行エンジンが終了しました
-
redefine
public void redefine(ExecutionControl.ClassBytecodes[] cbcs) throws ExecutionControl.ClassInstallException, ExecutionControl.NotImplementedException, ExecutionControl.EngineTerminationException インタフェース:ExecutionControlからコピーされた説明以前にロードされたクラスの再定義を試みます。- 定義:
- インタフェース
ExecutionControl内のredefine - パラメータ:
cbcs- 再定義するクラス名とバイトコード- スロー:
ExecutionControl.ClassInstallException- クラスの再定義中に例外が発生しました。一部またはすべてが再定義されませんでしたExecutionControl.NotImplementedException- 実装されていない場合ExecutionControl.EngineTerminationException- 実行エンジンが終了しました
-
invoke
public String invoke(String classname, String methodname) throws ExecutionControl.RunException, ExecutionControl.EngineTerminationException, ExecutionControl.InternalException インタフェース:ExecutionControlからコピーされた説明指定されたラッパー・クラスのメソッドをコールして、実行可能スニペットを起動します。 メソッドには引数がなく、Stringを返す必要があります。- 定義:
- インタフェース
ExecutionControl内のinvoke - パラメータ:
classname- メソッドを呼び出すべきクラスmethodname- 呼び出すメソッドの名前- 戻り値:
- 実行の結果。結果がない場合はnull
- スロー:
ExecutionControl.UserException- 呼び出しによってユーザー例外が発生しましたExecutionControl.ResolutionException- 呼び出しは、直接または間接的に未解決のスニペットを呼び出そうとしましたExecutionControl.StoppedException-invoke()がExecutionControl.stop()によって取り消された場合ExecutionControl.EngineTerminationException- 実行エンジンが終了しましたExecutionControl.InternalException- 内部問題が発生しましたExecutionControl.RunException
-
varValue
public String varValue(String classname, String varname) throws ExecutionControl.RunException, ExecutionControl.EngineTerminationException, ExecutionControl.InternalException インタフェース:ExecutionControlからコピーされた説明変数の値を返します。- 定義:
- インタフェース
ExecutionControl内のvarValue - パラメータ:
classname- 変数のラッパー・クラスの名前varname- 変数の名前- 戻り値:
- 変数の値
- スロー:
ExecutionControl.UserException- 値の書式設定によってユーザー例外が発生しましたExecutionControl.ResolutionException- 値をフォーマットすると、未解決のスニペットを直接的または間接的に呼び出そうとしましたExecutionControl.StoppedException- 値の書式設定がExecutionControl.stop()によって取消された場合ExecutionControl.EngineTerminationException- 実行エンジンが終了しましたExecutionControl.InternalException- 内部問題が発生しましたExecutionControl.RunException
-
addToClasspath
public void addToClasspath(String path) throws ExecutionControl.EngineTerminationException, ExecutionControl.InternalException インタフェース:ExecutionControlからコピーされた説明実行クラス・パスにパスを追加します。- 定義:
- インタフェース
ExecutionControl内のaddToClasspath - パラメータ:
path- 追加するパス- スロー:
ExecutionControl.EngineTerminationException- 実行エンジンが終了しましたExecutionControl.InternalException- 内部問題が発生しました
-
stop
public void stop() throws ExecutionControl.EngineTerminationException, ExecutionControl.InternalExceptionインタフェース:ExecutionControlからコピーされた説明実行中の呼出しを中断します。- 定義:
- インタフェース
ExecutionControl内のstop - スロー:
ExecutionControl.EngineTerminationException- 実行エンジンが終了しましたExecutionControl.InternalException- 内部問題が発生しました
-
extensionCommand
public Object extensionCommand(String command, Object arg) throws ExecutionControl.RunException, ExecutionControl.EngineTerminationException, ExecutionControl.InternalException インタフェース:ExecutionControlからコピーされた説明非標準コマンド(新しいバージョンの標準コマンド)を実行します。- 定義:
- インタフェース
ExecutionControl内のextensionCommand - パラメータ:
command- 非標準コマンドarg- コマンドの引数- 戻り値:
- コマンドは値を返します
- スロー:
ExecutionControl.UserException- コマンドはユーザー例外を発生させましたExecutionControl.ResolutionException- コマンドは、直接または間接的に未解決のスニペットを呼び出そうとしましたExecutionControl.StoppedException- コマンドがExecutionControl.stop()によって取り消された場合ExecutionControl.EngineTerminationException- 実行エンジンが終了しましたExecutionControl.NotImplementedException- 実装されていない場合ExecutionControl.InternalException- 内部問題が発生しましたExecutionControl.RunException
-
close
public void close()実行エンジンを閉じます。 exitコマンドをリモート・エージェントに送信します。- 定義:
close、インタフェースAutoCloseable- 定義:
- インタフェース
ExecutionControl内のclose
-