Class ShellSession
java.lang.Object
org.mvel2.sh.ShellSession
A shell session.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate Stringprivate Objectprivate intprivate static final String[](package private) StringAppender(package private) VariableResolverFactoryprivate booleanprivate intprivate PrintStream(package private) ParserContextprivate Stringstatic final String(package private) final BufferedReader -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void_exec()voidgetEnv()indent(int size) voidvoidrun()voidsetCommandBuffer(String commandBuffer) voidsetCtxObject(Object ctxObject) booleanshouldDefer(StringAppender inBuf)
-
Field Details
-
PROMPT_VAR
- See Also:
-
EMPTY
-
commands
-
variables
-
env
-
ctxObject
-
pCtx
ParserContext pCtx -
lvrf
-
depth
private int depth -
cdepth
private int cdepth -
multi
private boolean multi -
multiIndentSize
private int multiIndentSize -
out
-
prompt
-
commandBuffer
-
inBuffer
StringAppender inBuffer -
readBuffer
-
-
Constructor Details
-
ShellSession
public ShellSession() -
ShellSession
-
-
Method Details
-
_exec
private void _exec() -
run
public void run() -
printPrompt
public void printPrompt() -
shouldDefer
-
indent
-
getCommands
-
getVariables
-
getEnv
-
getCtxObject
-
setCtxObject
-
getCommandBuffer
-
setCommandBuffer
-
exec
-