Package org.apache.groovy.groovysh.jline

# Interface GroovyEngine.Cloner

Enclosing class:
  GroovyEngine

public static interface GroovyEngine.Cloner
Strategy used to clone session values for completion and inspection workflows.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Object`
  `clone(Object obj)`
  Creates a copy of the given object.
  `void`
  `markCache()`
  Marks the current state of the cache.
  `void`
  `purgeCache()`
  Purges cache entries created since the last mark.

- ## Method Details

  - ### clone

    Object clone(Object obj)
    Creates a copy of the given object.
    Parameters:
      `obj` - the object to clone
    Returns:
      a copy of the object

  - ### markCache

    void markCache()
    Marks the current state of the cache.

  - ### purgeCache

    void purgeCache()
    Purges cache entries created since the last mark.