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
static class Main.Shell extends Object implements Session.Shell
Shell (or sub-shell created vianet.hydromatic.morel.compile.BuiltIn#INTERACT_USE) that can execute commands and handle errors.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandle(RuntimeException e, StringBuilder buf)Handles an exception.(package private) voidrun(Session session, Main.BufferingReader in2)voiduse(String fileName, Pos pos)
-
-
-
Method Detail
-
run
void run(Session session, Main.BufferingReader in2)
-
use
public void use(String fileName, Pos pos)
- Specified by:
usein interfaceSession.Shell
-
handle
public void handle(RuntimeException e, StringBuilder buf)
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
-
-