Package: groovy.console.ui

## [Groovy] Class OutputTransforms

- groovy.console.ui.OutputTransforms

-     @CompileStatic
      class OutputTransforms
      extends Object

  Provides the transformation pipeline used to render console results.

- - ### Properties Summary

    Properties
    Type | Name and description
    --- | ---
    `static List<Closure>` | `localTransforms` Lazily loaded output transforms composed from user and built-in transforms.

  - ### Constructor Summary

    Constructors
    Constructor and description
    `OutputTransforms()`

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `static List<Closure>` | `loadOutputTransforms()` Loads user-defined and built-in output transforms.
    `` | `static Object` | `transformResult(Object base, List<Closure> transforms)` Applies the configured transforms until one returns a non-null value.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Property Detail

    - #### @Lazy
      static List<Closure> localTransforms

      Lazily loaded output transforms composed from user and built-in transforms.

  - ### Constructor Detail

    - #### OutputTransforms()

  - ### Method Detail

    - #### static List<Closure> loadOutputTransforms()

      Loads user-defined and built-in output transforms.

      Returns:
        transforms applied to console results

    - #### static Object transformResult(Object base, List<Closure> transforms)

      Applies the configured transforms until one returns a non-null value.

      Parameters:
        `base` - original result value
        `transforms` - transforms to apply
      Returns:
        the transformed value, or the original value when no transform matches