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 build
ContainerMappingMethod(s).- Author:
- Filip Hrisafov
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal Mbuild()callingContextTargetPropertyName(String callingContextTargetPropertyName) formattingParameters(FormattingParameters formattingParameters) protected abstract TypegetElementType(Type parameterType) protected abstract AssignmentgetWrapper(Assignment assignment, Method method) protected abstract MinstantiateMappingMethod(Method method, Collection<String> existingVariables, Assignment assignment, MethodReference factoryMethod, boolean mapNullToDefault, String loopVariableName, List<LifecycleCallbackMethodReference> beforeMappingMethods, List<LifecycleCallbackMethodReference> afterMappingMethods, SelectionParameters selectionParameters) mappingContext(MappingBuilderContext mappingContext) positionHint(AnnotationMirror positionHint) selectionParameters(SelectionParameters selectionParameters) protected booleanMethods inherited from class org.mapstruct.ap.internal.model.AbstractMappingMethodBuilder
getDescription, getMethodAnnotations
-
Field Details
-
myself
-
ctx
-
method
-
-
Method Details
-
formattingParameters
-
selectionParameters
-
callingContextTargetPropertyName
-
positionHint
-
build
- Specified by:
buildin 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) -
getElementType
-
getWrapper
-
shouldUsePropertyNamesInHistory
protected boolean shouldUsePropertyNamesInHistory()- Specified by:
shouldUsePropertyNamesInHistoryin classAbstractMappingMethodBuilder<B extends ContainerMappingMethodBuilder<B,M>, M extends ContainerMappingMethod> - Returns:
trueif property names should be used for the creation of theForgedMethodHistory.
-
mappingContext
-
method
-