|
Groovy 2.1.3 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectorg.codehaus.groovy.tools.shell.CommandSupport
abstract class CommandSupport
Support for org.codehaus.groovy.tools.shell.Command instances.
Field Summary | |
---|---|
protected static String |
NEWLINE
|
protected org.codehaus.groovy.tools.shell.IO |
io
The I/O container for the command to spit stuff out. |
protected org.codehaus.groovy.tools.shell.util.Logger |
log
Instance logger for the command, initialized late to include the command name. |
protected org.codehaus.groovy.tools.shell.util.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. |
Property Summary | |
---|---|
List |
aliases
Standard aliases for the command. |
boolean |
hidden
Flag to indicate if the command should be hidden or not. |
String |
name
The name of the command. |
String |
shortcut
The shortcut switch |
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 groovy.lang.Binding
|
getBinding()
|
protected List
|
getBuffer()
|
protected BufferManager
|
getBuffers()
|
protected groovy.lang.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, equals, toString, hashCode, getClass, notify, notifyAll |
Field Detail |
---|
protected static final String NEWLINE
protected final org.codehaus.groovy.tools.shell.IO io
protected final org.codehaus.groovy.tools.shell.util.Logger log
protected final org.codehaus.groovy.tools.shell.util.MessageSource messages
protected CommandRegistry registry
protected final Shell shell
Property Detail |
---|
final List aliases
boolean hidden
final String name
final String shortcut
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 groovy.lang.Binding getBinding()
protected List getBuffer()
protected BufferManager getBuffers()
protected groovy.lang.GroovyClassLoader getClassLoader()
jline.Completor getCompletor()
String getDescription()
String getHelp()
protected jline.History getHistory()
protected List getImports()
String getUsage()
protected Map getVariables()
Copyright © 2003-2013 The Codehaus. All rights reserved.