Package net.hydromatic.morel
Class Shell.SubShell.Use
java.lang.Object
net.hydromatic.morel.Shell.SubShell.Use
- All Implemented Interfaces:
Session.Shell
- Enclosing class:
Shell.SubShell
Implementation of the "use" function.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(RuntimeException e, StringBuilder buf) Handles an exception.voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.hydromatic.morel.eval.Session.Shell
clearEnv
-
Field Details
-
env
-
bindings
-
-
Constructor Details
-
Use
Use(Environment env, Map<String, Binding> bindings)
-
-
Method Details
-
use
- Specified by:
usein interfaceSession.Shell
-
handle
Description copied from interface:Session.ShellHandles an exception. Particular implementations may re-throw the exception, or may format the exception to a buffer that will be added to the output. Typically, a root shell will handle the exception, and sub-shells will re-throw.- Specified by:
handlein interfaceSession.Shell
-