- 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
-
-
コンストラクタのサマリー
コンストラクタ コンストラクタ 説明 StreamingExecutionControl(ObjectOutput out, ObjectInput in)
インスタンスを作成します。
-
メソッドのサマリー
すべてのメソッド インスタンス・メソッド 具象メソッド 修飾子と型 メソッド 説明 void
addToClasspath(String path)
実行クラスパスにパスを追加します。void
close()
実行エンジンを閉じます。Object
extensionCommand(String command, Object arg)
非標準コマンド(新しいバージョンの標準コマンド)を実行します。String
invoke(String classname, String methodname)
指定されたラッパー・クラスのメソッドを呼び出すことにより、実行可能スニペットを呼び出します。void
load(ExecutionControl.ClassBytecodes[] cbcs)
新しいクラスをロードしようとします。void
redefine(ExecutionControl.ClassBytecodes[] cbcs)
以前にロードされたクラスを再定義しようとします。void
stop()
実行中の呼び出しを中断します。String
varValue(String classname, String varname)
変数の値を返します。-
interface jdk.jshell.spi.ExecutionControlから継承したメソッド
generate, generate
-
-
-
-
コンストラクタの詳細
-
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
-
-