Class AbstractNshContext
java.lang.Object
net.thevpc.nsh.eval.AbstractNshContext
- All Implemented Interfaces:
NshContext
- Direct Known Subclasses:
DefaultNshContext,NshContextForSource
Created by vpc on 11/4/16.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.thevpc.nsh.eval.NshContext
NshContext.Watcher -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbindStreams(InputStream out, InputStream err, OutputStream in) voidcopyFrom(NshContext other) createCommandContext(NshBuiltin command) err()String[]expandPaths(String path) getAbsolutePath(String path) getArg(int index) String[]intin()out()resolveAutoCompleteCandidates(String commandName, List<String> autoCompleteWords, int wordIndex, String autoCompleteLine) voidsetErr(PrintStream err) setIn(InputStream in) setOut(PrintStream out) voidsetServiceName(String serviceName) setSession(NSession session) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.thevpc.nsh.eval.NshContext
aliases, builtins, functions, getAutoComplete, getDirectory, getFileSystem, getHome, getLastResult, getParentContext, getParentNode, getRootNode, getUserProperties, nsh, setAliases, setAutoComplete, setBuiltins, setDirectory, setEnv, setFileSystem, setFunctionManager, setLastResult, setParentNode, setRootNode, vars
-
Constructor Details
-
AbstractNshContext
public AbstractNshContext()
-
-
Method Details
-
in
- Specified by:
inin interfaceNshContext
-
out
- Specified by:
outin interfaceNshContext
-
err
- Specified by:
errin interfaceNshContext
-
bindStreams
- Specified by:
bindStreamsin interfaceNshContext
-
setOut
- Specified by:
setOutin interfaceNshContext
-
setErr
- Specified by:
setErrin interfaceNshContext
-
setIn
- Specified by:
setInin interfaceNshContext
-
createCommandContext
- Specified by:
createCommandContextin interfaceNshContext
-
resolveAutoCompleteCandidates
public List<NshAutoCompleteCandidate> resolveAutoCompleteCandidates(String commandName, List<String> autoCompleteWords, int wordIndex, String autoCompleteLine) - Specified by:
resolveAutoCompleteCandidatesin interfaceNshContext
-
getAbsolutePath
- Specified by:
getAbsolutePathin interfaceNshContext
-
expandPaths
- Specified by:
expandPathsin interfaceNshContext
-
copyFrom
- Specified by:
copyFromin interfaceNshContext
-
getServiceName
- Specified by:
getServiceNamein interfaceNshContext
-
setServiceName
- Specified by:
setServiceNamein interfaceNshContext
-
setArgs
- Specified by:
setArgsin interfaceNshContext
-
getArg
- Specified by:
getArgin interfaceNshContext
-
getArgsCount
public int getArgsCount()- Specified by:
getArgsCountin interfaceNshContext
-
getArgsArray
- Specified by:
getArgsArrayin interfaceNshContext
-
getArgsList
- Specified by:
getArgsListin interfaceNshContext
-
getSession
- Specified by:
getSessionin interfaceNshContext
-
setSession
- Specified by:
setSessionin interfaceNshContext
-
getWorkspace
- Specified by:
getWorkspacein interfaceNshContext
-