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
- 
メソッドの詳細- 
invokepublic 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
 
- 
stoppublic void stop() throws ExecutionControl.EngineTerminationException, ExecutionControl.InternalExceptionリモート変数を操作し、JDI経由で停止を送信することで、実行中のリモート呼出しを中断します。- 例外:
- ExecutionControl.EngineTerminationException- 実行エンジンが終了しました
- ExecutionControl.InternalException- 内部問題が発生しました
 
- 
closepublic void close()クラス:StreamingExecutionControlからコピーされた説明実行エンジンを閉じます。 exitコマンドをリモート・エージェントに送信します。- 定義:
- close、インタフェース- AutoCloseable
- 定義:
- インタフェースExecutionControl内のclose
- オーバーライド:
- クラスStreamingExecutionControlのclose
 
- 
vmprotected VirtualMachine vm() throws ExecutionControl.EngineTerminationExceptionクラス:JdiExecutionControlからコピーされた説明JDIVirtualMachineインスタンスを返します。- 定義:
- クラスJdiExecutionControlのvm
- 戻り値:
- 仮想マシン
- 例外:
- ExecutionControl.EngineTerminationException- VMが停止/切断されている場合
 
 
-