Top Fields Constructors Methods
groovy.transform

public final Enum AnnotationCollectorMode

extends Enum<AnnotationCollectorMode>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final AnnotationCollectorMode
DUPLICATE

Annotations from the annotation collection will always be inserted.

public static final AnnotationCollectorMode
PREFER_COLLECTOR

Annotations from the collector will be added and any existing annotations with the same name will be removed.

public static final AnnotationCollectorMode
PREFER_COLLECTOR_MERGED

Annotations from the collector will be added and any existing annotations with the same name will be removed but any new parameters found within existing annotations will be merged into the added annotation.

public static final AnnotationCollectorMode
PREFER_EXPLICIT

Annotations from the collector will be ignored if any existing annotations with the same name are found.

public static final AnnotationCollectorMode
PREFER_EXPLICIT_MERGED

Annotations from the collector will be ignored if any existing annotations with the same name are found but any new parameters on the collector annotation will be added to existing annotations.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static AnnotationCollectorMode
public static AnnotationCollectorMode[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

DUPLICATEback to summary
public static final AnnotationCollectorMode DUPLICATE

Annotations from the annotation collection will always be inserted. After all transforms have been run, it will be an error if multiple annotations (excluding those with SOURCE retention) exist.

PREFER_COLLECTORback to summary
public static final AnnotationCollectorMode PREFER_COLLECTOR

Annotations from the collector will be added and any existing annotations with the same name will be removed.

PREFER_COLLECTOR_MERGEDback to summary
public static final AnnotationCollectorMode PREFER_COLLECTOR_MERGED

Annotations from the collector will be added and any existing annotations with the same name will be removed but any new parameters found within existing annotations will be merged into the added annotation.

PREFER_EXPLICITback to summary
public static final AnnotationCollectorMode PREFER_EXPLICIT

Annotations from the collector will be ignored if any existing annotations with the same name are found.

PREFER_EXPLICIT_MERGEDback to summary
public static final AnnotationCollectorMode PREFER_EXPLICIT_MERGED

Annotations from the collector will be ignored if any existing annotations with the same name are found but any new parameters on the collector annotation will be added to existing annotations.

Constructor Detail

AnnotationCollectorModeback to summary
private AnnotationCollectorMode()

Method Detail

valueOfback to summary
public static AnnotationCollectorMode valueOf(String name)
valuesback to summary
public static AnnotationCollectorMode[] values()