Class DefaultNshContext
java.lang.Object
net.thevpc.nsh.eval.AbstractNshContext
net.thevpc.nsh.eval.DefaultNshContext
- All Implemented Interfaces:
NshContext
- Author:
- thevpc
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.thevpc.nsh.eval.NshContext
NshContext.Watcher -
Field Summary
FieldsModifier and TypeFieldDescriptionint -
Constructor Summary
ConstructorsConstructorDescriptionDefaultNshContext(NshContext other) DefaultNshContext(Nsh shell, NshNode rootNode, NshNode parentNode, NshContext parentContext, NshVariables vars, String serviceName, String[] args) -
Method Summary
Modifier and TypeMethodDescriptionaliases()builtins()voidcopyFrom(NshContext other) getHome()nsh()voidsetAliases(NshAliasManager aliasManager) voidsetAutoComplete(NCmdLineAutoComplete autoComplete) voidsetBuiltins(NshBuiltinManager builtinsManager) voidsetDirectory(String cwd) voidsetFileSystem(NshFileSystem fileSystem) voidsetFunctionManager(NshFunctionManager functionManager) voidsetLastResult(NshResult lastResult) setParentNode(NshNode parent) setRootNode(NshNode root) vars()Methods inherited from class net.thevpc.nsh.eval.AbstractNshContext
bindStreams, createCommandContext, err, expandPaths, getAbsolutePath, getArg, getArgsArray, getArgsCount, getArgsList, getServiceName, getSession, getWorkspace, in, out, resolveAutoCompleteCandidates, setArgs, setErr, setIn, setOut, setServiceName, setSession
-
Field Details
-
oldCmdLine
-
lastResult
-
parentContext
-
commandLineIndex
public int commandLineIndex
-
-
Constructor Details
-
DefaultNshContext
public DefaultNshContext(Nsh shell, NshNode rootNode, NshNode parentNode, NshContext parentContext, NshVariables vars, String serviceName, String[] args) -
DefaultNshContext
-
-
Method Details
-
nsh
-
getRootNode
-
setRootNode
-
getParentNode
-
setParentNode
-
vars
-
functions
-
setEnv
-
getUserProperties
-
getDirectory
-
getHome
-
setDirectory
-
getFileSystem
-
setFileSystem
-
getParentContext
-
aliases
-
setBuiltins
-
builtins
-
getLastResult
-
setLastResult
-
setAliases
-
copyFrom
- Specified by:
copyFromin interfaceNshContext- Overrides:
copyFromin classAbstractNshContext
-
getAutoComplete
-
setAutoComplete
-
setFunctionManager
-