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
-
コンストラクタのサマリー
-
メソッドのサマリー
修飾子と型メソッド説明void
addToClasspath
(String path) 実行クラス・パスにパスを追加します。void
close()
実行エンジンを閉じます。extensionCommand
(String command, Object arg) 非標準コマンド(新しいバージョンの標準コマンド)を実行します。指定されたラッパー・クラスのメソッドをコールして、実行可能スニペットを起動します。void
load
(ExecutionControl.ClassBytecodes[] cbcs) 新しいクラスをロードしようとします。void
以前にロードされたクラスの再定義を試みます。void
stop()
実行中の呼出しを中断します。変数の値を返します。
-
コンストラクタの詳細
-
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
-