Groovy 1.6.4

groovy.lang
Annotation Type Grapes

java.lang.Object
  groovy.lang.Grapes

@interface Grapes

Sometimes we will need more than one grab per class, but we can only add one annotation type per annotatable node. This class allows for multiple grabs to be added. For example:

 @Grapes([@Grab(module='m1'), @Grab(module='m2')])
 class AnnotatedClass { ... }
 


Required Element Summary
Grab[] value

 
Optional Element Summary
boolean initClass

This will be pushed into the child grab annotations if the value is not set in the child annotation already.

 
Method Summary
 
Methods inherited from class Object
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll
 

Element Detail

initClass

boolean initClass
This will be pushed into the child grab annotations if the value is not set in the child annotation already. This results in an effective change in the default value, which each @Grab can still override
default:
true


value

Grab[] value


 

Copyright © 2003-2009 The Codehaus. All rights reserved.