public class DefaultJShellContext extends AbstractJShellContext
JShellContext.Watcher| Modifier and Type | Field and Description |
|---|---|
int |
commandLineIndex |
JShellResult |
lastResult |
String |
oldCommandLine |
JShellContext |
parentContext |
| Constructor and Description |
|---|
DefaultJShellContext(JShellContext other) |
DefaultJShellContext(JShell shell,
JShellNode rootNode,
JShellNode parentNode,
JShellContext parentContext,
net.thevpc.nuts.NutsWorkspace workspace,
net.thevpc.nuts.NutsSession session,
JShellVariables vars,
String serviceName,
String[] args) |
bindStreams, createCommandContext, err, expandPaths, getAbsolutePath, getArg, getArgsArray, getArgsCount, getArgsList, getServiceName, getSession, getWorkspace, in, out, resolveAutoCompleteCandidates, setArgs, setErr, setIn, setOut, setServiceName, setSessionpublic String oldCommandLine
public JShellResult lastResult
public JShellContext parentContext
public int commandLineIndex
public DefaultJShellContext(JShell shell, JShellNode rootNode, JShellNode parentNode, JShellContext parentContext, net.thevpc.nuts.NutsWorkspace workspace, net.thevpc.nuts.NutsSession session, JShellVariables vars, String serviceName, String[] args)
public DefaultJShellContext(JShellContext other)
public JShell getShell()
public JShellNode getRootNode()
public JShellContext setRootNode(JShellNode root)
public JShellNode getParentNode()
public JShellContext setParentNode(JShellNode parent)
public JShellVariables vars()
public JShellFunctionManager functions()
public JShellContext setEnv(Map<String,String> env)
public String getCwd()
public String getHome()
public void setCwd(String cwd)
public JShellFileSystem getFileSystem()
public void setFileSystem(JShellFileSystem fileSystem)
public JShellContext getParentContext()
public JShellAliasManager aliases()
public void setBuiltins(JShellBuiltinManager builtinsManager)
public JShellBuiltinManager builtins()
public JShellResult getLastResult()
public void setLastResult(JShellResult lastResult)
public void setAliases(JShellAliasManager aliasManager)
public void copyFrom(JShellContext other)
copyFrom in interface JShellContextcopyFrom in class AbstractJShellContextpublic net.thevpc.nuts.NutsCommandAutoComplete getAutoComplete()
public void setAutoComplete(net.thevpc.nuts.NutsCommandAutoComplete autoComplete)
public void setFunctionManager(JShellFunctionManager functionManager)
Copyright © 2022 vpc open source initiative. All rights reserved.