Package org.mvel2.sh
Class ShellSession
- java.lang.Object
-
- org.mvel2.sh.ShellSession
-
public class ShellSession extends Object
A shell session.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classShellSession.RunState
-
Field Summary
Fields Modifier and Type Field Description static StringPROMPT_VAR
-
Constructor Summary
Constructors Constructor Description ShellSession()ShellSession(String init)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexec(String command)StringgetCommandBuffer()Map<String,Command>getCommands()ObjectgetCtxObject()Map<String,String>getEnv()Map<String,Object>getVariables()Stringindent(int size)voidprintPrompt()voidrun()voidsetCommandBuffer(String commandBuffer)voidsetCtxObject(Object ctxObject)booleanshouldDefer(StringAppender inBuf)
-
-
-
Field Detail
-
PROMPT_VAR
public static final String PROMPT_VAR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ShellSession
public ShellSession()
-
ShellSession
public ShellSession(String init)
-
-
Method Detail
-
run
public void run()
-
printPrompt
public void printPrompt()
-
shouldDefer
public boolean shouldDefer(StringAppender inBuf)
-
indent
public String indent(int size)
-
getCtxObject
public Object getCtxObject()
-
setCtxObject
public void setCtxObject(Object ctxObject)
-
getCommandBuffer
public String getCommandBuffer()
-
setCommandBuffer
public void setCommandBuffer(String commandBuffer)
-
exec
public void exec(String command)
-
-