Package net.hydromatic.morel
Class Shell.ConfigImpl
java.lang.Object
net.hydromatic.morel.Shell.ConfigImpl
- All Implemented Interfaces:
Shell.Config
- Enclosing class:
Shell
Implementation of
Shell.Config.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final Fileprivate final booleanprivate final booleanprivate final booleanprivate final intprivate final Runnableprivate final booleanprivate final com.google.common.collect.ImmutableMap<String, ForeignValue> Fields inherited from interface net.hydromatic.morel.Shell.Config
DEFAULT -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateConfigImpl(boolean banner, boolean dumb, boolean system, boolean echo, boolean help, com.google.common.collect.ImmutableMap<String, ForeignValue> valueMap, File directory, Runnable pauseFn, int maxUseDepth) -
Method Summary
Modifier and TypeMethodDescriptionwithBanner(boolean banner) withDirectory(File directory) withDumb(boolean dumb) withEcho(boolean echo) withHelp(boolean help) withMaxUseDepth(int maxUseDepth) withPauseFn(Runnable pauseFn) withSystem(boolean system) withValueMap(Map<String, ForeignValue> valueMap)
-
Field Details
-
banner
private final boolean banner -
dumb
private final boolean dumb -
echo
private final boolean echo -
help
private final boolean help -
system
private final boolean system -
valueMap
-
directory
-
pauseFn
-
maxUseDepth
private final int maxUseDepth
-
-
Constructor Details
-
ConfigImpl
private ConfigImpl(boolean banner, boolean dumb, boolean system, boolean echo, boolean help, com.google.common.collect.ImmutableMap<String, ForeignValue> valueMap, File directory, Runnable pauseFn, int maxUseDepth)
-
-
Method Details
-
withBanner
- Specified by:
withBannerin interfaceShell.Config
-
withDumb
- Specified by:
withDumbin interfaceShell.Config
-
withSystem
- Specified by:
withSystemin interfaceShell.Config
-
withEcho
- Specified by:
withEchoin interfaceShell.Config
-
withHelp
- Specified by:
withHelpin interfaceShell.Config
-
withValueMap
- Specified by:
withValueMapin interfaceShell.Config
-
withDirectory
- Specified by:
withDirectoryin interfaceShell.Config
-
withPauseFn
- Specified by:
withPauseFnin interfaceShell.Config
-
withMaxUseDepth
- Specified by:
withMaxUseDepthin interfaceShell.Config
-