@GroovyASTTransformationClass(value: org.klokwrk.lib.xlang.groovy.base.transform.KwrkMapConstructorNoArgHideableAstTransformation) @Retention(value: RetentionPolicy.RUNTIME) @Target(value: [ElementType.TYPE]) @interface KwrkMapConstructorNoArgHideable
AST transformation that changes visibility prom public to private (by default) for no-arg constructor generated by @MapConstructor(noArg = true)
.
makePackagePrivate
and makeProtected
boolean attributes (both are false
by default).
If both makePackagePrivate
and makeProtected
are set to true
, then makePackagePrivate
takes precedence.
It can be used standalone, but is commonly used as a part of KwrkImmutable
meta-annotation.
Type Params | Return Type | Name and description |
---|---|---|
|
abstract boolean |
enableNoArgHiding() Set to false to disable transformation. |
|
abstract boolean |
makePackagePrivate() Set to true for package private visibility of a default constructor. |
|
abstract boolean |
makeProtected() Set to true for protected visibility of a default constructor.
|
Set to false
to disable transformation.
Set to true
for package private visibility of a default constructor.
Set to true
for protected visibility of a default constructor.
makePackagePrivate
is also set to true
, then makePackagePrivate
takes precedence.