Package net.hydromatic.morel
Class Shell.SubShell
java.lang.Object
net.hydromatic.morel.Shell.SubShell
- Enclosing class:
Shell
Simplified shell that works in both interactive mode (where input and
output is a terminal) and batch mode (where input is a file, and output
is to an array of lines).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classImplementation of the "use" function. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final Fileprivate final booleanprivate final Environmentprivate final Shell.LineFnprivate final intprivate final Sessionprivate final TypeSystem -
Constructor Summary
ConstructorsConstructorDescriptionSubShell(int depth, int maxDepth, Shell.LineFn lineFn, boolean echo, TypeSystem typeSystem, Environment env, Consumer<String> outLines, Session session, File directory) -
Method Summary
-
Field Details
-
depth
private final int depth -
maxDepth
private final int maxDepth -
lineFn
-
echo
private final boolean echo -
typeSystem
-
env
-
outLines
-
session
-
directory
-
-
Constructor Details
-
SubShell
SubShell(int depth, int maxDepth, Shell.LineFn lineFn, boolean echo, TypeSystem typeSystem, Environment env, Consumer<String> outLines, Session session, File directory)
-
-
Method Details
-
extracted
-