[Groovy] Class CommandAlias
- org.apache.groovy.groovysh.CommandAlias
class CommandAlias extends CommandSupport
Provides simple command aliasing.
Fields inherited from class | Fields |
---|---|
class CommandSupport | NEWLINE, io, log, messages, registry, shell |
Properties Summary
Type | Name and description |
---|---|
String |
targetName |
Constructor Summary
Constructor and description |
---|
CommandAlias
(Groovysh shell, String name, String shortcut, String target) |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
protected List<Completer> |
createCompleters() | |
Object |
execute(List<String> args) | |
String |
getDescription() | |
String |
getHelp() | |
boolean |
getHidden() | |
Command |
getTarget() | |
String |
getUsage() |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class CommandSupport | alias, assertNoArguments, createCompleters, fail, fail, getAliases, getBinding, getBuffer, getBuffers, getClassLoader, getCompleter, getDescription, getHelp, getHidden, getHistory, getImports, getName, getShortcut, getUsage, getVariables |
Property Detail
final String targetName
Constructor Detail
CommandAlias(Groovysh shell, String name, String shortcut, String target)
Method Detail
@Override protected List<Completer> createCompleters()
@Override Object execute(List<String> args)
@Override String getDescription()
@Override String getHelp()
@Override boolean getHidden()
Command getTarget()
@Override String getUsage()
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/org/apache/groovy/groovysh/CommandAlias.html