public class DefaultJShellExecutionContext extends Object implements JShellExecutionContext
| Constructor and Description |
|---|
DefaultJShellExecutionContext(JShellContext shellContext,
JShellBuiltin command) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
configureFirst(net.thevpc.nuts.NutsCommandLine cmd) |
void |
configureLast(net.thevpc.nuts.NutsCommandLine cmd) |
net.thevpc.nuts.NutsPrintStream |
err() |
net.thevpc.nuts.NutsApplicationContext |
getAppContext() |
net.thevpc.nuts.NutsTerminalMode |
geTerminalMode() |
<T> T |
getOptions() |
net.thevpc.nuts.NutsSession |
getSession() |
JShell |
getShell() |
JShellContext |
getShellContext() |
net.thevpc.nuts.NutsWorkspace |
getWorkspace() |
InputStream |
in() |
boolean |
isAskHelp() |
boolean |
isAskVersion() |
net.thevpc.nuts.NutsPrintStream |
out() |
DefaultJShellExecutionContext |
setAskHelp(boolean askHelp) |
DefaultJShellExecutionContext |
setAskVersion(boolean askVersion) |
DefaultJShellExecutionContext |
setOptions(Object options) |
public DefaultJShellExecutionContext(JShellContext shellContext, JShellBuiltin command)
public net.thevpc.nuts.NutsWorkspace getWorkspace()
getWorkspace in interface JShellExecutionContextpublic net.thevpc.nuts.NutsSession getSession()
getSession in interface JShellExecutionContextpublic JShell getShell()
getShell in interface JShellExecutionContextpublic net.thevpc.nuts.NutsPrintStream out()
out in interface JShellExecutionContextpublic net.thevpc.nuts.NutsPrintStream err()
err in interface JShellExecutionContextpublic InputStream in()
in in interface JShellExecutionContextpublic JShellContext getShellContext()
getShellContext in interface JShellExecutionContextpublic boolean configureFirst(net.thevpc.nuts.NutsCommandLine cmd)
configureFirst in interface JShellExecutionContextpublic boolean isAskVersion()
isAskVersion in interface JShellExecutionContextpublic DefaultJShellExecutionContext setAskVersion(boolean askVersion)
public void configureLast(net.thevpc.nuts.NutsCommandLine cmd)
configureLast in interface JShellExecutionContextpublic net.thevpc.nuts.NutsApplicationContext getAppContext()
getAppContext in interface JShellExecutionContextpublic net.thevpc.nuts.NutsTerminalMode geTerminalMode()
public boolean isAskHelp()
isAskHelp in interface JShellExecutionContextpublic DefaultJShellExecutionContext setAskHelp(boolean askHelp)
public <T> T getOptions()
getOptions in interface JShellExecutionContextpublic DefaultJShellExecutionContext setOptions(Object options)
setOptions in interface JShellExecutionContextCopyright © 2022 vpc open source initiative. All rights reserved.