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
private class Shell.SubShell.Use extends Object implements Session.Shell
Implementation of the "use" function.
-
-
Constructor Summary
Constructors Constructor Description Use(Environment env, Map<String,Binding> bindings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandle(RuntimeException e, StringBuilder buf)Handles an exception.voiduse(String fileName, Pos pos)
-
-
-
Field Detail
-
env
private final Environment env
-
-
Constructor Detail
-
Use
Use(Environment env, Map<String,Binding> bindings)
-
-
Method Detail
-
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
-
-