@Experimental(value="The FreeBuilder accessor naming strategy might change in a subsequent release") public class FreeBuilderAccessorNamingStrategy extends DefaultAccessorNamingStrategy
from(Target)
mapXXX(UnaryOperator)
mutateXXX(Consumer)
mergeFrom(Target)
mergeFrom(Target.Builder)
When the JavaBean convention is not used with FreeBuilder then the getters are non standard and MapStruct
won't recognize them. Therefore one needs to use the JavaBean convention in which the fluent setters
start with set
.
elementUtils, typeUtils
Constructor and Description |
---|
FreeBuilderAccessorNamingStrategy() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isFluentSetter(ExecutableElement method) |
getCollectionGetterName, getElementName, getMethodType, getPropertyName, getQualifiedName, init, isAdderMethod, isGetterMethod, isPresenceCheckMethod, isSetterMethod
protected boolean isFluentSetter(ExecutableElement method)
isFluentSetter
in class DefaultAccessorNamingStrategy
Copyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.