クラスJdiDefaultExecutionControl
java.lang.Object
jdk.jshell.execution.StreamingExecutionControl
jdk.jshell.execution.JdiExecutionControl
jdk.jshell.execution.JdiDefaultExecutionControl
- すべての実装されたインタフェース:
AutoCloseable,ExecutionControl
public class JdiDefaultExecutionControl extends JdiExecutionControl
JShellコアがデフォルトで使用する
ExecutionControlの実装。 リモート・プロセスを起動 -- "リモート・エージェント"。 ソケットおよびJDIを介したリモート・エージェントへのインタフェース。 RemoteExecutionControlで動作するように設計されています。 - 導入されたバージョン:
- 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 -
メソッドのサマリー
修飾子と型メソッド説明voidclose()実行エンジンを閉じます。指定されたラッパー・クラスのメソッドをコールして、実行可能スニペットを起動します。voidstop()リモート変数を操作し、JDI経由で停止を送信することで、実行中のリモート呼出しを中断します。protected VirtualMachinevm()JDIVirtualMachineインスタンスを返します。クラスjdk.jshell.execution.JdiExecutionControlで宣言されたメソッド
redefine, referenceTypeクラスjdk.jshell.execution.StreamingExecutionControlで宣言されたメソッド
addToClasspath, close, extensionCommand, load, varValueクラスjava.lang.Objectで宣言されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitインタフェースjdk.jshell.spi.ExecutionControlで宣言されたメソッド
addToClasspath, extensionCommand, load, varValue
-
メソッドの詳細
-
invoke
public String invoke(String classname, String methodname) throws ExecutionControl.RunException, ExecutionControl.EngineTerminationException, ExecutionControl.InternalException インタフェース:ExecutionControlからコピーされた説明指定されたラッパー・クラスのメソッドをコールして、実行可能スニペットを起動します。 メソッドには引数がなく、Stringを返す必要があります。- 定義:
- インタフェース
ExecutionControl内のinvoke - オーバーライド:
- クラス
StreamingExecutionControlのinvoke - パラメータ:
classname- メソッドを呼び出すべきクラスmethodname- 呼び出すメソッドの名前- 戻り値:
- 実行の結果。結果がない場合はnull
- 例外:
ExecutionControl.UserException- 呼び出しによってユーザー例外が発生しましたExecutionControl.ResolutionException- 呼び出しは、直接または間接的に未解決のスニペットを呼び出そうとしましたExecutionControl.StoppedException-invoke()がExecutionControl.stop()によって取り消された場合ExecutionControl.EngineTerminationException- 実行エンジンが終了しましたExecutionControl.InternalException- 内部問題が発生しましたExecutionControl.RunException
-
stop
public void stop() throws ExecutionControl.EngineTerminationException, ExecutionControl.InternalExceptionリモート変数を操作し、JDI経由で停止を送信することで、実行中のリモート呼出しを中断します。- 例外:
ExecutionControl.EngineTerminationException- 実行エンジンが終了しましたExecutionControl.InternalException- 内部問題が発生しました
-
close
public void close()クラス:StreamingExecutionControlからコピーされた説明実行エンジンを閉じます。 exitコマンドをリモート・エージェントに送信します。- 定義:
close、インタフェースAutoCloseable- 定義:
- インタフェース
ExecutionControl内のclose - オーバーライド:
- クラス
StreamingExecutionControlのclose
-
vm
protected VirtualMachine vm() throws ExecutionControl.EngineTerminationExceptionクラス:JdiExecutionControlからコピーされた説明JDIVirtualMachineインスタンスを返します。- 定義:
- クラス
JdiExecutionControlのvm - 戻り値:
- 仮想マシン
- 例外:
ExecutionControl.EngineTerminationException- VMが停止/切断されている場合
-