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, invoke, 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を返さなければなりません。- パラメータ:
classname- メソッドを呼び出すべきクラスmethodname- 呼び出すメソッドの名前- 戻り値:
- 実行の結果。結果がない場合はnull
- throws:
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経由で停止を送信します。- throws:
ExecutionControl.EngineTerminationException- 実行エンジンが終了しましたExecutionControl.InternalException- 内部問題が発生しました
-
close
public void close()クラスからコピーされた説明:StreamingExecutionControl実行エンジンを閉じます。 リモート・エージェントにexitコマンドを送信します。- 定義:
close、インタフェースAutoCloseable- 定義:
- インタフェース
ExecutionControl内のclose - オーバーライド:
- クラス
StreamingExecutionControlのclose
-
vm
protected VirtualMachine vm() throws ExecutionControl.EngineTerminationExceptionクラスからコピーされた説明:JdiExecutionControlJDIVirtualMachineインスタンスを返します。- 定義:
- クラス
JdiExecutionControlのvm - 戻り値:
- 仮想マシン
- throws:
ExecutionControl.EngineTerminationException- VMが停止/切断されている場合
-