|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crsh.shell.impl.CRaSH
public class CRaSH
| Constructor Summary | |
|---|---|
CRaSH(PluginContext context)
|
|
| Method Summary | |
|---|---|
void |
close()
|
Map<String,String> |
complete(String prefix)
For now basic implementation |
Object |
getAttribute(String name)
|
ShellCommand |
getCommand(String name)
Attempt to obtain a command instance. |
groovy.lang.GroovyShell |
getGroovyShell()
|
String |
getPrompt()
Returns the shell prompt. |
String |
getWelcome()
Returns the welcome message. |
void |
process(String request,
ShellProcessContext processContext)
Process a request. |
void |
setAttribute(String name,
Object value)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CRaSH(PluginContext context)
| Method Detail |
|---|
public ShellCommand getCommand(String name)
throws CreateCommandException,
NullPointerException
name - the command name
CreateCommandException - if an error occured preventing the command creation
NullPointerException - if the name argument is nullpublic groovy.lang.GroovyShell getGroovyShell()
public Object getAttribute(String name)
public void setAttribute(String name,
Object value)
public void close()
public String getWelcome()
Shell
getWelcome in interface Shellpublic String getPrompt()
Shell
getPrompt in interface Shell
public void process(String request,
ShellProcessContext processContext)
Shell
process in interface Shellrequest - the request to processprocessContext - the process contextpublic Map<String,String> complete(String prefix)
complete in interface Shellprefix - the prefix to complete
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||