Package net.hydromatic.morel
Class Main.SubShell
- java.lang.Object
-
- net.hydromatic.morel.Main.Shell
-
- net.hydromatic.morel.Main.SubShell
-
- All Implemented Interfaces:
Session.Shell
- Enclosing class:
- Main
static class Main.SubShell extends Main.Shell
Shell that is created via thenet.hydromatic.morel.compile.BuiltIn#INTERACT_USE) command. Like a top-level shell, it can execute commands and handle errors. But its input is a file, and its output is to the same output as its parent shell.
-
-
Field Summary
-
Fields inherited from class net.hydromatic.morel.Main.Shell
bindingMap, env0, main, outLines
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidappendToOutput(MorelException e, Consumer<String> outLines)(package private) voidcommand(AstNode statement, Consumer<String> outLines)voiduse(String fileName, Pos pos)-
Methods inherited from class net.hydromatic.morel.Main.Shell
handle, run
-
-
-
-
Method Detail
-
use
public void use(String fileName, Pos pos)
- Specified by:
usein interfaceSession.Shell- Overrides:
usein classMain.Shell
-
appendToOutput
private void appendToOutput(MorelException e, Consumer<String> outLines)
-
-