Package: org.apache.groovy.groovysh.jline

## [Groovy] Class GroovyConsoleEngine

- org.apache.groovy.groovysh.jline.GroovyConsoleEngine

-     class GroovyConsoleEngine
      extends ConsoleEngineImpl

  Adapts the generic JLine console engine to groovysh command naming and printing behavior.

- - ### Constructor Summary

    Constructors
    Constructor and description
    `GroovyConsoleEngine(ScriptEngine engine, Printer printer, Supplier<Path> workDir, ConfigurationPath configPath, LineReader reader)` Creates the console-engine adapter used by groovysh.

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `String` | `name()` Returns the help-group name used for these commands.
    `` | `void` | `println(Map<String, Object> options, Object object)` Prints a value using the configured shell printer and option set.

- - ### Constructor Detail

    - #### GroovyConsoleEngine(ScriptEngine engine, Printer printer, Supplier<Path> workDir, ConfigurationPath configPath, LineReader reader)

      Creates the console-engine adapter used by groovysh.

      Parameters:
        `engine` - script engine that evaluates Groovy input
        `printer` - printer used for formatted output
        `workDir` - supplier for the current working directory
        `configPath` - configuration lookup path
        `reader` - line reader bound to the interactive shell

  - ### Method Detail

    - #### @Override
      String name()

      Returns the help-group name used for these commands.

      Returns:
        the console command group name

    - #### void println(Map<String, Object> options, Object object)

      Prints a value using the configured shell printer and option set.

      Parameters:
        `options` - print options to apply
        `object` - value to render