Groovy Documentation

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

java.lang.Object
  org.codehaus.groovy.tools.shell.ShellRunner
      org.codehaus.groovy.tools.shell.InteractiveShellRunner
All Implemented Interfaces:
java.lang.Runnable

class InteractiveShellRunner
extends ShellRunner

Support for running a Shell interactively using the JLine library.

Authors:
Jason Dillon
Version:
\$Id\$


Field Summary
 
Fields inherited from class ShellRunner
log
 
Property Summary
CommandsMultiCompleter completer

Closure prompt

jline.console.ConsoleReader reader

WrappedInputStream wrappedInputStream

 
Constructor Summary
InteractiveShellRunner(Groovysh shell, Closure prompt)

 
Method Summary
protected java.lang.String readLine()

void run()

void setHistory(jline.console.history.FileHistory history)

protected boolean work()

 
Methods inherited from class ShellRunner
readLine, run, work
 

Property Detail

completer

final CommandsMultiCompleter completer


prompt

final Closure prompt


reader

jline.console.ConsoleReader reader


wrappedInputStream

WrappedInputStream wrappedInputStream


 
Constructor Detail

InteractiveShellRunner

InteractiveShellRunner(Groovysh shell, Closure prompt)


 
Method Detail

readLine

protected java.lang.String readLine()


run

void run()


setHistory

void setHistory(jline.console.history.FileHistory history)


work

@java.lang.Override
protected boolean work()


 

Groovy Documentation