Class JavaBoxExecutionControl
java.lang.Object
jdk.jshell.execution.DirectExecutionControl
jdk.jshell.execution.LocalExecutionControl
org.dellroad.javabox.execution.LocalContextExecutionControl
org.dellroad.javabox.JavaBoxExecutionControl
- All Implemented Interfaces:
AutoCloseable,ExecutionControl
public class JavaBoxExecutionControl
extends org.dellroad.javabox.execution.LocalContextExecutionControl
The
LocalExecutionControl used by JavaBox itself.-
Nested Class Summary
Nested classes/interfaces inherited from 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 -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidleaveContext(Object result, Throwable error) voidload(ExecutionControl.ClassBytecodes[] cbcs) protected StringvalueStringWithContext(Object result) Methods inherited from class org.dellroad.javabox.execution.LocalContextExecutionControl
invoke, invokeWithContext, invokeWrapperMethods inherited from class jdk.jshell.execution.LocalExecutionControl
clientCodeEnter, clientCodeLeave, stopMethods inherited from class jdk.jshell.execution.DirectExecutionControl
addToClasspath, classesRedefined, close, extensionCommand, findClass, invoke, redefine, throwConvertedInvocationException, throwConvertedOtherException, valueString, varValue
-
Field Details
-
box
-
-
Constructor Details
-
JavaBoxExecutionControl
Constructor.- Parameters:
delegate- loader delegate
-
-
Method Details
-
load
public void load(ExecutionControl.ClassBytecodes[] cbcs) throws ExecutionControl.ClassInstallException, ExecutionControl.NotImplementedException, ExecutionControl.EngineTerminationException - Specified by:
loadin interfaceExecutionControl- Overrides:
loadin classLocalExecutionControl- Throws:
ExecutionControl.ClassInstallExceptionExecutionControl.NotImplementedExceptionExecutionControl.EngineTerminationException
-
enterContext
protected void enterContext()- Overrides:
enterContextin classorg.dellroad.javabox.execution.LocalContextExecutionControl
-
leaveContext
-
valueStringWithContext
-