B
- the builder itself that needs to be used for chainingM
- the method that the builder buildspublic abstract class ContainerMappingMethodBuilder<B extends ContainerMappingMethodBuilder<B,M>,M extends ContainerMappingMethod> extends AbstractMappingMethodBuilder<B,M>
ContainerMappingMethod
(s).Modifier and Type | Field and Description |
---|---|
protected MappingBuilderContext |
ctx |
protected Method |
method |
protected B |
myself |
getDescription
protected B extends org.mapstruct.ap.internal.model.AbstractBaseBuilder<B> myself
protected MappingBuilderContext ctx
protected Method method
public B formattingParameters(FormattingParameters formattingParameters)
public B selectionParameters(SelectionParameters selectionParameters)
public B callingContextTargetPropertyName(String callingContextTargetPropertyName)
public B positionHint(AnnotationMirror positionHint)
public final M build()
build
in class AbstractMappingMethodBuilder<B extends ContainerMappingMethodBuilder<B,M>,M extends ContainerMappingMethod>
protected abstract M instantiateMappingMethod(Method method, Collection<String> existingVariables, Assignment assignment, MethodReference factoryMethod, boolean mapNullToDefault, String loopVariableName, List<LifecycleCallbackMethodReference> beforeMappingMethods, List<LifecycleCallbackMethodReference> afterMappingMethods, SelectionParameters selectionParameters)
protected abstract Assignment getWrapper(Assignment assignment, Method method)
protected boolean shouldUsePropertyNamesInHistory()
shouldUsePropertyNamesInHistory
in class AbstractMappingMethodBuilder<B extends ContainerMappingMethodBuilder<B,M>,M extends ContainerMappingMethod>
true
if property names should be used for the creation of the ForgedMethodHistory
.public B mappingContext(MappingBuilderContext mappingContext)
Copyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.