groovy.lang
Annotation Type Grapes
public @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 { ... }
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. |
value
public abstract Grab[] value
initClass
public abstract 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