java.lang.Object
jdk.jshell.execution.DirectExecutionControl
jdk.jshell.execution.LocalExecutionControl
- 所有已实现的接口:
-
AutoCloseable
,ExecutionControl
一个实现了在与JShell核心相同的JVM中执行的
ExecutionControl
的实现。
- 自版本:
- 9
-
Nested Class Summary
Nested classes/interfaces declared in interface jdk.jshell.spi.ExecutionControl
ExecutionControl.ClassBytecodes, ExecutionControl.ClassInstallException, ExecutionControl.EngineTerminationException, ExecutionControl.ExecutionControlException, ExecutionControl.InternalException, ExecutionControl.NotImplementedException, ExecutionControl.ResolutionException, ExecutionControl.RunException, ExecutionControl.StoppedException, ExecutionControl.UserException
-
Constructor Summary
ConstructorDescription使用默认类加载创建一个实例。LocalExecutionControl
(LoaderDelegate loaderDelegate) 创建一个实例,将加载操作委托给指定的代理。 -
Method Summary
Modifier and TypeMethodDescriptionprotected void
标记进入用户代码。protected void
标记离开用户代码。Methods declared in class jdk.jshell.execution.DirectExecutionControl
addToClasspath, classesRedefined, close, extensionCommand, findClass, invoke, invoke, load, redefine, stop, throwConvertedInvocationException, throwConvertedOtherException, valueString, varValue
-
Constructor Details
-
LocalExecutionControl
创建一个实例,将加载操作委托给指定的代理。- 参数:
-
loaderDelegate
- 处理加载类的代理
-
LocalExecutionControl
public LocalExecutionControl()使用默认类加载创建一个实例。
-
-
Method Details
-
clientCodeEnter
protected void clientCodeEnter()从类中复制的描述:DirectExecutionControl
标记进入用户代码。 -
clientCodeLeave
protected void clientCodeLeave()从类中复制的描述:DirectExecutionControl
标记离开用户代码。
-