Package org.mapstruct.ap.spi
Class ImmutablesAccessorNamingStrategy
- java.lang.Object
-
- org.mapstruct.ap.spi.DefaultAccessorNamingStrategy
-
- org.mapstruct.ap.spi.ImmutablesAccessorNamingStrategy
-
- All Implemented Interfaces:
AccessorNamingStrategy
@Experimental("The Immutables accessor naming strategy might change in a subsequent release") public class ImmutablesAccessorNamingStrategy extends DefaultAccessorNamingStrategy
Accessor naming strategy for Immutables. The generated Immutables also have a from that works as a copy. Our default strategy considers this method as a setter with a namefrom
. Therefore, we are ignoring it.- Author:
- Filip Hrisafov
-
-
Field Summary
-
Fields inherited from class org.mapstruct.ap.spi.DefaultAccessorNamingStrategy
elementUtils, typeUtils
-
-
Constructor Summary
Constructors Constructor Description ImmutablesAccessorNamingStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
isFluentSetter(ExecutableElement method)
-
Methods inherited from class org.mapstruct.ap.spi.DefaultAccessorNamingStrategy
getCollectionGetterName, getElementName, getMethodType, getPropertyName, getQualifiedName, init, isAdderMethod, isGetterMethod, isPresenceCheckMethod, isSetterMethod
-
-
-
-
Method Detail
-
isFluentSetter
protected boolean isFluentSetter(ExecutableElement method)
- Overrides:
isFluentSetter
in classDefaultAccessorNamingStrategy
-
-