Package net.hydromatic.morel
Class Main.Shell
java.lang.Object
net.hydromatic.morel.Main.Shell
- All Implemented Interfaces:
Session.Shell
- Direct Known Subclasses:
Main.SubShell
- Enclosing class:
Main
Shell (or sub-shell created via
net.hydromatic.morel.compile.BuiltIn#INTERACT_USE) that can
execute commands and handle errors.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(RuntimeException e, StringBuilder buf) Handles an exception.(package private) voidrun(Session session, Main.BufferingReader in2) void
-
Field Details
-
main
-
env0
-
echoLines
-
outLines
-
bindingMap
-
-
Constructor Details
-
Shell
-
-
Method Details
-
run
-
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
-