Groovy 1.7.2

org.codehaus.groovy.tools.shell
Class Groovysh

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

public class Groovysh
extends Shell

An interactive shell for evaluating Groovy code from the command-line (aka. groovysh).

version:
$Id: Groovysh.groovy 18634 2009-12-12 12:04:57Z paulk $
author:
Jason Dillon


Constructor Summary
Groovysh(ClassLoader classLoader, Binding binding, IO io, Closure registrar)

Groovysh(ClassLoader classLoader, Binding binding, IO io)

Groovysh(Binding binding, IO io)

Groovysh(IO io)

Groovysh()

 
Method Summary
Object execute(String line)

Execute a single line, where the line may be a command or Groovy code (complete or incomplete).

protected Object executeCommand(String line)

File getUserStateDirectory()

int run(String[] args)

int run(String commandLine)

 
Methods inherited from class Shell
execute, findCommand, isExecutable, leftShift, leftShift, parseLine, register
 
Methods inherited from class Object
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll
 

Constructor Detail

Groovysh

public Groovysh(ClassLoader classLoader, Binding binding, IO io, Closure registrar)


Groovysh

public Groovysh(ClassLoader classLoader, Binding binding, IO io)


Groovysh

public Groovysh(Binding binding, IO io)


Groovysh

public Groovysh(IO io)


Groovysh

public Groovysh()


 
Method Detail

execute

public Object execute(String line)
Execute a single line, where the line may be a command or Groovy code (complete or incomplete).


executeCommand

protected Object executeCommand(String line)


getUserStateDirectory

public File getUserStateDirectory()


run

public int run(String[] args)


run

public int run(String commandLine)


 

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