Package org.mapstruct.ap.internal.model
Class ContainerMappingMethodBuilder<B extends ContainerMappingMethodBuilder<B,M>,M extends ContainerMappingMethod>
- java.lang.Object
-
- org.mapstruct.ap.internal.model.AbstractMappingMethodBuilder<B,M>
-
- org.mapstruct.ap.internal.model.ContainerMappingMethodBuilder<B,M>
-
- Type Parameters:
B
- the builder itself that needs to be used for chainingM
- the method that the builder builds
- Direct Known Subclasses:
IterableMappingMethod.Builder
,StreamMappingMethod.Builder
public abstract class ContainerMappingMethodBuilder<B extends ContainerMappingMethodBuilder<B,M>,M extends ContainerMappingMethod> extends AbstractMappingMethodBuilder<B,M>
Builder that can be used to buildContainerMappingMethod
(s).- Author:
- Filip Hrisafov
-
-
Method Summary
-
Methods inherited from class org.mapstruct.ap.internal.model.AbstractMappingMethodBuilder
getDescription
-
-
-
-
Field Detail
-
myself
protected B extends org.mapstruct.ap.internal.model.AbstractBaseBuilder<B> myself
-
ctx
protected MappingBuilderContext ctx
-
method
protected Method method
-
-
Method Detail
-
formattingParameters
public B formattingParameters(FormattingParameters formattingParameters)
-
selectionParameters
public B selectionParameters(SelectionParameters selectionParameters)
-
callingContextTargetPropertyName
public B callingContextTargetPropertyName(String callingContextTargetPropertyName)
-
positionHint
public B positionHint(AnnotationMirror positionHint)
-
build
public final M build()
- Specified by:
build
in classAbstractMappingMethodBuilder<B extends ContainerMappingMethodBuilder<B,M>,M extends ContainerMappingMethod>
-
instantiateMappingMethod
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)
-
getWrapper
protected abstract Assignment getWrapper(Assignment assignment, Method method)
-
shouldUsePropertyNamesInHistory
protected boolean shouldUsePropertyNamesInHistory()
- Specified by:
shouldUsePropertyNamesInHistory
in classAbstractMappingMethodBuilder<B extends ContainerMappingMethodBuilder<B,M>,M extends ContainerMappingMethod>
- Returns:
true
if property names should be used for the creation of theForgedMethodHistory
.
-
mappingContext
public B mappingContext(MappingBuilderContext mappingContext)
-
-