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(ClassLoader parent) デフォルトのクラス・ロードを使用してインスタンスを作成しますが、指定した親クラス・ローダーに委任します。LocalExecutionControl(LoaderDelegate loaderDelegate) インスタンスを作成し、指定した委任にローダー操作を委任します。
- 
メソッドのサマリー修飾子と型メソッド説明protected voidユーザー・コードにエントリをマークします。protected voidユーザー・コードからの出発をマークします。クラスjdk.jshell.execution.DirectExecutionControlで宣言されたメソッドaddToClasspath, classesRedefined, close, extensionCommand, findClass, invoke, invoke, load, redefine, stop, throwConvertedInvocationException, throwConvertedOtherException, valueString, varValue
- 
コンストラクタの詳細- 
LocalExecutionControlpublic LocalExecutionControl(LoaderDelegate loaderDelegate) インスタンスを作成し、指定した委任にローダー操作を委任します。- パラメータ:
- loaderDelegate- デリゲートがロード・クラスを処理
 
- 
LocalExecutionControlpublic LocalExecutionControl()デフォルトのクラス・ロードを使用してインスタンスを作成し、システム・クラス・ローダーに委任します。
- 
LocalExecutionControlpublic LocalExecutionControl(ClassLoader parent) デフォルトのクラス・ロードを使用してインスタンスを作成しますが、指定した親クラス・ローダーに委任します。- パラメータ:
- parent- 親クラス・ローダー
- 導入されたバージョン:
- 22
 
 
- 
- 
メソッドの詳細- 
clientCodeEnterprotected void clientCodeEnter()クラス:DirectExecutionControlからコピーされた説明ユーザー・コードにエントリをマークします。- オーバーライド:
- クラスDirectExecutionControlのclientCodeEnter
 
- 
clientCodeLeaveprotected void clientCodeLeave()クラス:DirectExecutionControlからコピーされた説明ユーザー・コードからの出発をマークします。- オーバーライド:
- クラスDirectExecutionControlのclientCodeLeave
 
 
-