Code and Design Refactoring is any change to a computer systems' code or design which improves its readability or simplifies its structure without changing its results.
Here we illustrate refactoring techniques which are applicable to Groovy. In general, most Java refactoring techniques apply equally well to Groovy. Sometimes Groovy adds a new twist as well.
We don't discuss tool support to auto implement some of these refactoring techniques. Consult your IDE plugin documentation to see if it has any specific support that you can use.
See also: Design Patterns with Groovy