Package groovy.util
package groovy.util
Various Groovy utilities for working with nodes, builders, logging, and other things.
-
ClassDescriptionAn iterator that allows examining the next element without consuming it.Base class for creating arbitrary nested trees of objects or events.Utility class to guess the encoding of a given text file.A Comparator which uses a closure to compare 2 values being equalA ConfigObject at a simple level is a Map that creates configuration entries (other ConfigObjects) when referencing them.Allow easy integration from Groovy into Java through convenience methods.Represents a dynamically expandable bean.Mix of BuilderSupport and SwingBuilder's factory support.Specific script engine able to reload modified scripts as well as dealing properly with dependent scripts.A helper class for printing indented text.A Map.Entry implementation.Represents an arbitrary tree node which can be used for structured metadata or any arbitrary XML-like tree.A helper class for creating nested trees of Node objects for handling arbitrary dataA List implementation which is returned by queries on a
Node
which provides some XPath like helper methods for GPath.A helper class for creating nested trees of dataA builder for creating object graphs.
Each node defines the class to be created and the property on its parent (if any) at the same time.Strategy for setting a child node on its parent.
Useful for handling Lists/Arrays vs normal properties.Strategy for resolving a classname.Default impl that calls parent.propertyName = child
If parent.propertyName is a Collection it will try to add child to the collection.Default impl that capitalizes the classname.Default impl, always returns 'id'Default impl that calls Class.newInstance()Default impl, always returns 'refId'Default impl that returns parentName and childName accordingly.Strategy for picking the correct synthetic identifier.Strategy for creating new instances of a class.
Useful for plug-in calls to non-default constructors.Strategy for picking the correct synthetic reference identifier.Strategy for resolving a relationship property name.List decorator that will trigger PropertyChangeEvents when a value changes.
An optional Closure may be specified and will work as a filter, if it returns true the property will trigger an event (if the value indeed changed), otherwise it won't.Map decorator that will trigger PropertyChangeEvents when a value changes.
An optional Closure may be specified and will work as a filter, if it returns true the property will trigger an event (if the value indeed changed), otherwise it won't.Set decorator that will trigger PropertyChangeEvents when a value changes.
An optional Closure may be specified and will work as a filter, if it returns true the property will trigger an event (if the value indeed changed), otherwise it won't.OrderBy<T>A helper class for sorting objects via a closure to return the field or operation on which to sort.Systematically generate permutations.Dynamic groovy proxy for another object.Generates 'Proxy' objects which implement interfaces, maps of closures and/or extend classes/delegates.Base interface for customizing where resources can be found for theGroovyScriptEngine
.