Groovy 1.7.0

groovy.lang
Annotation Type Category

java.lang.Object
  groovy.lang.Category

@Retention(RetentionPolicy.SOURCE)
@Target(ElementType.TYPE)
@GroovyASTTransformationClass("org.codehaus.groovy.transform.CategoryASTTransformation")
@interface Category

Transforms an instance-style Groovy class or interface to become a static-style conventional Groovy category.

Groovy categories are the original mechanism used by Groovy when augmenting classes with new methods. Writing categories required using a class writing style where all methods were static and an additional self parameter was defined. The self parameter and static nature of the methods disappeared once applied by Groovy's metaclass framework but some regarded the writing style as a little noisy. This transformation allows you to write your categories without the "apparent noise" but adds it back in during compilation so that the classes appear as normal categories.

It might seem strange writing your class/object enhancements using a succinct notation, then having "noise" added, then having the noise removed during category application. If this worries you, then you may also like to consider using Groovy's ExpandoMetaClass mechanism which avoids the category a limage/x-icon" rel="shortcut icon">
Groovy 1.7.0

groovy.lang
Class StringWriterIOException

java.lang.Object
  java.lang.Throwable
      java.lang.Exception
          java.lang.RuntimeException
              groovy.lang.StringWriterIOException

class StringWriterIOException
extends RuntimeException

An IO exception occurred trying to append to a StringWriter which should never happen.

author:
James Strachan
version:
$Revision: 6778 $


Constructor Summary
StringWriterIOException(IOException e)

 
Method Summary</