- 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()実行エンジンを閉じます。Stringinvoke(String classname, String methodname)指定されたラッパー・クラスのメソッドを呼び出すことにより、実行可能スニペットを呼び出します。voidstop()実行中のリモート呼び出しを中断する。リモート変数を操作し、JDI経由で停止を送信します。protected VirtualMachinevm()JDIVirtualMachineインスタンスを返します。-
interface jdk.jshell.spi.ExecutionControlから継承したメソッド
addToClasspath, extensionCommand, generate, generate, load, varValue
-
class jdk.jshell.execution.JdiExecutionControlから継承したメソッド
redefine, referenceType
-
クラス java.lang.Objectから継承されたメソッド
clone、equals、finalize、getClass、hashCode、notify、notifyAll、toString、wait、wait、wait
-
class jdk.jshell.execution.StreamingExecutionControlから継承したメソッド
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内のstop - オーバーライド:
- クラス
StreamingExecutionControlのstop - 例外:
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 - 戻り値:
- 仮想マシン
- 例外:
ExecutionControl.EngineTerminationException- VMが停止/切断されている場合
-
-