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 |
| Modifier and Type | Method and Description |
|---|---|
M |
build() |
B |
callingContextTargetPropertyName(String callingContextTargetPropertyName) |
B |
formattingParameters(FormattingParameters formattingParameters) |
protected abstract Type |
getElementType(Type parameterType) |
protected abstract Assignment |
getWrapper(Assignment assignment,
Method method) |
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) |
B |
mappingContext(MappingBuilderContext mappingContext) |
B |
method(Method sourceMethod) |
B |
selectionParameters(SelectionParameters selectionParameters) |
protected boolean |
shouldUsePropertyNamesInHistory() |
getDescriptionprotected 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 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–2020. All rights reserved.