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 TypeMethodDescriptionCreates a copy of the given object.voidMarks the current state of the cache.voidPurges cache entries created since the last mark.
-
Method Details
-
clone
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.
-