Groovy 1.7.0

org.codehaus.groovy.tools.shell
Class Shell

java.lang.Object
  org.codehaus.groovy.tools.shell.Shell

class Shell
extends Object

A simple shell for invoking commands from a command-line.

version:
$Id: Shell.groovy 8432 2007-10-07 08:55:37Z user57 $
author:
Jason Dillon


Property Summary
IO io

protected Logger log

CommandRegistry registry

 
Constructor Summary
Shell(IO io)

Shell()

 
Method Summary
Object execute(String line)

Command findCommand(String line)

boolean isExecutable(String line)

def leftShift(String line)

def leftShift(Command command)

protected List parseLine(String line)

Command register(Command command)

 
Methods inherited from class Object
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll
 

Property Detail

io

final IO io


log

protected final Logger log


registry

final CommandRegistry registry


 
Constructor Detail

Shell

public Shell(IO io)


Shell

public Shell()


 
Method Detail

execute

Object execute(String line)


findCommand

Command findCommand(String line)


isExecutable

boolean isExecutable(String line)


leftShift

public def leftShift(String line)


leftShift

public def leftShift(Command command)


parseLine

protected List parseLine(String line)


register

Command register(Command command)


 

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