@GroovyASTTransformationClass(value: org.klokwrk.lib.xlang.groovy.base.transform.KwrkMapConstructorDefaultPostCheckAstTransformation) @Retention(value: RetentionPolicy.SOURCE) @Target(value: [ElementType.TYPE]) @interface KwrkMapConstructorDefaultPostCheck
Convenient AST transformation annotation that automatically adds default map-constructor post check code into generated map-constructor.
Generated code just callsPostMapConstructorCheckable.postMapConstructorCheckProtocol(Map originalMapConstructorArguments)
.
Annotation is intended to be used with classes that are annotated with @MapConstructor
and that implement PostMapConstructorCheckable
interface. Transformation only applies if both
of these conditions are satisfied.
Transformation is not applied if map-constructor postcondition is declared directly on @MapConstructor
via post
attribute.
Commonly it is not used standalone, but rather as a part of KwrkImmutable
meta-annotation.