|
Groovy 1.7.2 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectorg.codehaus.groovy.tools.shell.CommandSupport
public abstract class CommandSupport extends Object
Support for Command instances.
Property Summary | |
---|---|
protected static String |
NEWLINE
|
protected IO |
io
The I/O container for the command to spit stuff out. |
protected Logger |
log
Instance logger for the command, initialized late to include the command name. |
protected MessageSource |
messages
i18n message source for the command. |
protected CommandRegistry |
registry
Provides the command instance with the registry, for aliasing support. |
protected Shell |
shell
The owning shell. |
Constructor Summary | |
protected CommandSupport(Shell shell, String name, String shortcut)
|
Method Summary | |
---|---|
protected void
|
alias(String name, String shortcut)
|
protected void
|
assertNoArguments(List args)
|
protected List
|
createCompletors()
Override to provide custom completion semantics for the command. |
protected void
|
fail(String msg)
|
protected void
|
fail(String msg, Throwable cause)
|
protected Binding
|
getBinding()
|
protected List
|
getBuffer()
|
protected BufferManager
|
getBuffers()
|
protected GroovyClassLoader
|
getClassLoader()
|
jline.Completor
|
getCompletor()
Setup the completor for the command. |
String
|
getDescription()
|
String
|
getHelp()
|
protected jline.History
|
getHistory()
|
protected List
|
getImports()
|
String
|
getUsage()
|
protected Map
|
getVariables()
|
Methods inherited from class Object | |
---|---|
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll |
Property Detail |
---|
protected static final String NEWLINE
protected final IO io
protected final Logger log
protected final MessageSource messages
protected CommandRegistry registry
protected final Shell shell
Constructor Detail |
---|
protected CommandSupport(Shell shell, String name, String shortcut)
Method Detail |
---|
protected void alias(String name, String shortcut)
protected void assertNoArguments(List args)
protected List createCompletors()
protected void fail(String msg)
protected void fail(String msg, Throwable cause)
protected Binding getBinding()
protected List getBuffer()
protected BufferManager getBuffers()
protected GroovyClassLoader getClassLoader()
public jline.Completor getCompletor()
public String getDescription()
public String getHelp()
protected jline.History getHistory()
protected List getImports()
public String getUsage()
protected Map getVariables()
Copyright © 2003-2010 The Codehaus. All rights reserved.