- java.lang.Object
-
- jdk.jshell.execution.DirectExecutionControl
-
- jdk.jshell.execution.LocalExecutionControl
-
- すべての実装されたインタフェース:
AutoCloseable
,ExecutionControl
public class LocalExecutionControl extends DirectExecutionControl
JShellコアと同じJVMで実行されるExecutionControl
の実装。- 導入されたバージョン:
- 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
-
-
コンストラクタのサマリー
コンストラクタ コンストラクタ 説明 LocalExecutionControl()
デフォルトのクラス・ローディングを使用してインスタンスを作成します。LocalExecutionControl(LoaderDelegate loaderDelegate)
指定されたデリゲートにローダー操作を委譲するインスタンスを作成します。
-
メソッドのサマリー
すべてのメソッド インスタンス・メソッド 具象メソッド 修飾子と型 メソッド 説明 protected void
clientCodeEnter()
ユーザー・コードへのエントリをマークします。protected void
clientCodeLeave()
ユーザー・コードから出発します。protected String
invoke(Method doitMethod)
パラメータを指定しない静的メソッド"doit-method"を呼び出します。void
stop()
実行中の呼び出しを中断します。-
class jdk.jshell.execution.DirectExecutionControlから継承したメソッド
addToClasspath, classesRedefined, close, extensionCommand, findClass, invoke, load, redefine, throwConvertedInvocationException, throwConvertedOtherException, valueString, varValue
-
interface jdk.jshell.spi.ExecutionControlから継承したメソッド
generate, generate
-
-
-
-
コンストラクタの詳細
-
LocalExecutionControl
public LocalExecutionControl(LoaderDelegate loaderDelegate)
指定されたデリゲートにローダー操作を委譲するインスタンスを作成します。- パラメータ:
loaderDelegate
- デリゲートがロード・クラスを処理
-
LocalExecutionControl
public LocalExecutionControl()
デフォルトのクラス・ローディングを使用してインスタンスを作成します。
-
-
メソッドの詳細
-
invoke
protected String invoke(Method doitMethod) throws Exception
クラスからコピーされた説明:DirectExecutionControl
パラメータを指定しない静的メソッド"doit-method"を呼び出します。 このクラスのDirectExecutionControl.invoke(java.lang.String, java.lang.String)
はこれを呼び出して呼び出します。- オーバーライド:
- クラス
DirectExecutionControl
のinvoke
- パラメータ:
doitMethod
- 呼び出すメソッド- 戻り値:
- 値またはnull
- 例外:
Exception
-Method.invoke(Object, Object...)
または任意のExecutionControl.ExecutionControlException
によってパススルーにスローされた例外。
-
stop
public void stop() throws ExecutionControl.EngineTerminationException, ExecutionControl.InternalException
クラスからコピーされた説明:DirectExecutionControl
実行中の呼び出しを中断します。サポートされていません。
- 定義:
- インタフェース
ExecutionControl
内のstop
- オーバーライド:
- クラス
DirectExecutionControl
のstop
- 例外:
ExecutionControl.EngineTerminationException
- 実行エンジンが終了しましたExecutionControl.InternalException
- 内部問題が発生しました
-
clientCodeEnter
protected void clientCodeEnter()
クラスからコピーされた説明:DirectExecutionControl
ユーザー・コードへのエントリをマークします。- オーバーライド:
- クラス
DirectExecutionControl
のclientCodeEnter
-
clientCodeLeave
protected void clientCodeLeave()
クラスからコピーされた説明:DirectExecutionControl
ユーザー・コードから出発します。- オーバーライド:
- クラス
DirectExecutionControl
のclientCodeLeave
-
-