Package net.hydromatic.morel
Class Shell.ConfigImpl
- java.lang.Object
-
- net.hydromatic.morel.Shell.ConfigImpl
-
- All Implemented Interfaces:
Shell.Config
- Enclosing class:
- Shell
private static class Shell.ConfigImpl extends Object implements Shell.Config
Implementation ofShell.Config.
-
-
Field Summary
Fields Modifier and Type Field Description private booleanbannerprivate Filedirectoryprivate booleandumbprivate booleanechoprivate booleanhelpprivate intmaxUseDepthprivate RunnablepauseFnprivate booleansystemprivate com.google.common.collect.ImmutableMap<String,ForeignValue>valueMap-
Fields inherited from interface net.hydromatic.morel.Shell.Config
DEFAULT
-
-
Constructor Summary
Constructors Modifier Constructor Description privateConfigImpl(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Shell.ConfigImplwithBanner(boolean banner)Shell.ConfigImplwithDirectory(File directory)Shell.ConfigImplwithDumb(boolean dumb)Shell.ConfigImplwithEcho(boolean echo)Shell.ConfigImplwithHelp(boolean help)Shell.ConfigImplwithMaxUseDepth(int maxUseDepth)Shell.ConfigwithPauseFn(Runnable pauseFn)Shell.ConfigImplwithSystem(boolean system)Shell.ConfigImplwithValueMap(Map<String,ForeignValue> valueMap)
-
-
-
Field Detail
-
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
private final com.google.common.collect.ImmutableMap<String,ForeignValue> valueMap
-
directory
private final File directory
-
pauseFn
private final Runnable pauseFn
-
maxUseDepth
private final int maxUseDepth
-
-
Constructor Detail
-
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 Detail
-
withBanner
public Shell.ConfigImpl withBanner(boolean banner)
- Specified by:
withBannerin interfaceShell.Config
-
withDumb
public Shell.ConfigImpl withDumb(boolean dumb)
- Specified by:
withDumbin interfaceShell.Config
-
withSystem
public Shell.ConfigImpl withSystem(boolean system)
- Specified by:
withSystemin interfaceShell.Config
-
withEcho
public Shell.ConfigImpl withEcho(boolean echo)
- Specified by:
withEchoin interfaceShell.Config
-
withHelp
public Shell.ConfigImpl withHelp(boolean help)
- Specified by:
withHelpin interfaceShell.Config
-
withValueMap
public Shell.ConfigImpl withValueMap(Map<String,ForeignValue> valueMap)
- Specified by:
withValueMapin interfaceShell.Config
-
withDirectory
public Shell.ConfigImpl withDirectory(File directory)
- Specified by:
withDirectoryin interfaceShell.Config
-
withPauseFn
public Shell.Config withPauseFn(Runnable pauseFn)
- Specified by:
withPauseFnin interfaceShell.Config
-
withMaxUseDepth
public Shell.ConfigImpl withMaxUseDepth(int maxUseDepth)
- Specified by:
withMaxUseDepthin interfaceShell.Config
-
-