Package org.apache.groovy.groovysh
Interface GroovyshOptions.ResultHandler
- Enclosing class:
- GroovyshOptions
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Handles a value produced by the REPL loop.
-
Method Summary
-
Method Details
-
handle
Rendersresultafter a line has been executed.- Parameters:
printer- the printer used by the sessionresult- the value returned by the command dispatch, which may benull- Throws:
Exception- if rendering fails; groovysh then routes it to the error handler
-