Groovy 2.2.1

org.codehaus.groovy.tools.shell.commands
[Groovy] Class RegisterCommand

java.lang.Object
  org.codehaus.groovy.tools.shell.CommandSupport
      org.codehaus.groovy.tools.shell.commands.RegisterCommand

class RegisterCommand
extends CommandSupport

The 'register' command. Registers a class as a new groovysh command. Requires the command to have matching constructors (shell) or (shell, name, alias).

Authors:
Chris K Wensel
Version:
\$Id\$


Field Summary
 
Fields inherited from class CommandSupport
NEWLINE, io, log, messages, registry, shell
 
Constructor Summary
RegisterCommand(Groovysh shell)

 
Method Summary
Object execute(List args)

 
Methods inherited from class CommandSupport
alias, assertNoArguments, createCompleters, fail, fail, getBinding, getBuffer, getBuffers, getClassLoader, getCompleter, getDescription, getHelp, getHistory, getImports, getUsage, getVariables
 

Constructor Detail

RegisterCommand

RegisterCommand(Groovysh shell)


 
Method Detail

execute

Object execute(List args)


 

Copyright © 2003-2013 The Codehaus. All rights reserved.