Groovy 2.2.0

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:
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

ConsoleReader reader

WrappedInputStream wrappedInputStream

 
Constructor Summary
InteractiveShellRunner(Groovysh shell, Closure prompt)

 
Method Summary
protected String readLine()

void run()

void setHistory(FileHistory history)

protected boolean work()

 
Methods inherited from class ShellRunner
readLine, run, work
 

Property Detail

completer

final CommandsMultiCompleter completer


prompt

final Closure prompt


reader

ConsoleReader reader


wrappedInputStream

WrappedInputStream wrappedInputStream


 
Constructor Detail

InteractiveShellRunner

InteractiveShellRunner(Groovysh shell, Closure prompt)


 
Method Detail

readLine

protected String readLine()


run

void run()


setHistory

void setHistory(FileHistory history)


work

@Override
protected boolean work()


 

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