public interface JShellContext
| Modifier and Type | Interface and Description |
|---|---|
static interface |
JShellContext.Watcher |
JShell getShell()
JShellNode getRootNode()
JShellContext setRootNode(JShellNode root)
JShellNode getParentNode()
JShellContext setParentNode(JShellNode parent)
InputStream in()
net.thevpc.nuts.NutsPrintStream out()
net.thevpc.nuts.NutsPrintStream err()
JShellVariables vars()
JShellContext.Watcher bindStreams(InputStream out, InputStream err, OutputStream in)
JShellFunctionManager functions()
JShellContext setOut(PrintStream out)
JShellContext setErr(PrintStream out)
JShellContext setIn(InputStream in)
JShellExecutionContext createCommandContext(JShellBuiltin command)
List<JShellAutoCompleteCandidate> resolveAutoCompleteCandidates(String commandName, List<String> autoCompleteWords, int wordIndex, String autoCompleteLine)
JShellContext setEnv(Map<String,String> env)
String getCwd()
String getHome()
void setCwd(String cwd)
JShellFileSystem getFileSystem()
void setFileSystem(JShellFileSystem fileSystem)
JShellContext getParentContext()
JShellAliasManager aliases()
void setBuiltins(JShellBuiltinManager commandManager)
JShellBuiltinManager builtins()
JShellResult getLastResult()
void setLastResult(JShellResult result)
void setAliases(JShellAliasManager aliasManager)
void copyFrom(JShellContext other)
String getServiceName()
void setServiceName(String serviceName)
void setArgs(String[] args)
String getArg(int index)
int getArgsCount()
String[] getArgsArray()
net.thevpc.nuts.NutsSession getSession()
JShellContext setSession(net.thevpc.nuts.NutsSession session)
net.thevpc.nuts.NutsWorkspace getWorkspace()
net.thevpc.nuts.NutsCommandAutoComplete getAutoComplete()
void setAutoComplete(net.thevpc.nuts.NutsCommandAutoComplete value)
void setFunctionManager(JShellFunctionManager functionManager)
Copyright © 2022 vpc open source initiative. All rights reserved.