Groovy 2.2.1

org.codehaus.groovy.tools.shell
[Groovy] Class ComplexCommandSupport

java.lang.Object
  org.codehaus.groovy.tools.shell.CommandSupport
      org.codehaus.groovy.tools.shell.ComplexCommandSupport

abstract class ComplexCommandSupport
extends CommandSupport

Support for more complex commands.

Authors:
Jason Dillon
Version:
\$Id\$


Field Summary
protected String defaultFunction

protected List functions

 
Fields inherited from class CommandSupport
NEWLINE, io, log, messages, registry, shell
 
Property Summary
def do_all

 
Constructor Summary
ComplexCommandSupport(Groovysh shell, String name, String shortcut, List comFunctions)

ComplexCommandSupport(Groovysh shell, String name, String shortcut, List comFunctions, String defaultFunction)

 
Method Summary
protected List createCompleters()

Object execute(List args)

protected def executeFunction(String fname, List args)

List getFunctions()

protected Closure loadFunction(String name)

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

Field Detail

defaultFunction

protected String defaultFunction


functions

protected List functions


 
Property Detail

do_all

def do_all


 
Constructor Detail

ComplexCommandSupport

ComplexCommandSupport(Groovysh shell, String name, String shortcut, List comFunctions)


ComplexCommandSupport

ComplexCommandSupport(Groovysh shell, String name, String shortcut, List comFunctions, String defaultFunction)


 
Method Detail

createCompleters

protected List createCompleters()


execute

Object execute(List args)


executeFunction

protected def executeFunction(String fname, List args)


getFunctions

List getFunctions()


loadFunction

protected Closure loadFunction(String name)


 

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