[Groovy] Class ShellRunner
- org.apache.groovy.groovysh.ShellRunner
- All Implemented Interfaces and Traits:
- Runnable
abstract class ShellRunner extends Object implements Runnable
Support for running a Shell.
Field Summary
| Modifiers | Name | Description |
|---|---|---|
protected Logger | log |
Properties Summary
| Type | Name and description |
|---|---|
boolean |
breakOnNull |
Closure |
errorHandler |
boolean |
running |
Shell |
shell |
Constructor Summary
| Constructor and description |
|---|
protected ShellRunner
(Shell shell) |
Methods Summary
| Type Params | Return Type | Name and description |
|---|---|---|
protected abstract String |
readLine() | |
void |
run() | |
protected boolean |
work() |
Inherited Methods Summary
| Methods inherited from class | Name |
|---|---|
class Object | wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Field Detail
protected final Logger log
Property Detail
boolean breakOnNull
Closure errorHandler
boolean running
final Shell shell
Constructor Detail
protected ShellRunner(Shell shell)
Method Detail
protected abstract String readLine()
@Override void run()
protected boolean work()
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/org/apache/groovy/groovysh/ShellRunner.html