groovy / 4.0 / org / apache / groovy / groovysh / interactiveshellrunner.html

[Groovy] Class InteractiveShellRunner

  • org.apache.groovy.groovysh.InteractiveShellRunner
All Implemented Interfaces and Traits:
Runnable
class InteractiveShellRunner
extends ShellRunner
implements Runnable

Support for running a Shell interactively using the JLine library.

Inherited fields
Fields inherited from class Fields
class ShellRunner log

Properties Summary

Properties
Type Name and description
org.apache.groovy.groovysh.CommandsMultiCompleter completer
Closure prompt
jline.console.ConsoleReader reader
WrappedInputStream wrappedInputStream

Constructor Summary

Constructors
Constructor and description
InteractiveShellRunner(Groovysh shell, Closure prompt)

Methods Summary

Methods
Type Params Return Type Name and description
protected String readLine()
void run()
void setHistory(jline.console.history.FileHistory history)
protected boolean work()

Inherited Methods Summary

Inherited Methods
Methods inherited from class Name
class ShellRunner readLine, run, work

Property Detail

final org.apache.groovy.groovysh.CommandsMultiCompleter completer

final Closure prompt

jline.console.ConsoleReader reader

WrappedInputStream wrappedInputStream

Constructor Detail

InteractiveShellRunner(Groovysh shell, Closure prompt)

Method Detail

@Override protected String readLine()

@Override void run()

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

@Override protected boolean work()

© 2003-2022 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/4.0.0/html/gapi/org/apache/groovy/groovysh/InteractiveShellRunner.html