Package org.mapstruct.ap.internal.model
Class AbstractMappingMethodBuilder<B extends AbstractMappingMethodBuilder<B,M>,M extends MappingMethod>
- java.lang.Object
-
- org.mapstruct.ap.internal.model.AbstractBaseBuilder<B>
-
- org.mapstruct.ap.internal.model.AbstractMappingMethodBuilder<B,M>
-
- Direct Known Subclasses:
BeanMappingMethod.Builder,ContainerMappingMethodBuilder,MapMappingMethod.Builder
public abstract class AbstractMappingMethodBuilder<B extends AbstractMappingMethodBuilder<B,M>,M extends MappingMethod> extends AbstractBaseBuilder<B>
An abstract builder that can be reused for buildingMappingMethod(s).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static interfaceAbstractMappingMethodBuilder.ForgeMethodCreator
-
Field Summary
Fields Modifier and Type Field Description private ForgedMethodHistorydescription-
Fields inherited from class org.mapstruct.ap.internal.model.AbstractBaseBuilder
ctx, method, myself
-
-
Constructor Summary
Constructors Constructor Description AbstractMappingMethodBuilder(java.lang.Class<B> selfType)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Mbuild()(package private) AssignmentforgeMapping(SourceRHS sourceRHS, Type sourceType, Type targetType)private AssignmentforgeMapping(SourceRHS sourceRHS, Type sourceType, Type targetType, AbstractMappingMethodBuilder.ForgeMethodCreator forgeMethodCreator)(package private) AssignmentforgeSubclassMapping(SourceRHS sourceRHS, Type sourceType, Type targetType, MappingReferences mappingReferences)ForgedMethodHistorygetDescription()private java.lang.StringgetName(Type type)private java.lang.StringgetName(Type sourceType, Type targetType)protected abstract booleanshouldUsePropertyNamesInHistory()-
Methods inherited from class org.mapstruct.ap.internal.model.AbstractBaseBuilder
canGenerateAutoSubMappingBetween, createForgedAssignment, createForgedAssignment, mappingContext, method, reportCannotCreateMapping, reportCannotCreateMapping
-
-
-
-
Field Detail
-
description
private ForgedMethodHistory description
-
-
Constructor Detail
-
AbstractMappingMethodBuilder
public AbstractMappingMethodBuilder(java.lang.Class<B> selfType)
-
-
Method Detail
-
build
public abstract M build()
-
shouldUsePropertyNamesInHistory
protected abstract boolean shouldUsePropertyNamesInHistory()
- Returns:
trueif property names should be used for the creation of theForgedMethodHistory.
-
forgeMapping
Assignment forgeMapping(SourceRHS sourceRHS, Type sourceType, Type targetType)
-
forgeSubclassMapping
Assignment forgeSubclassMapping(SourceRHS sourceRHS, Type sourceType, Type targetType, MappingReferences mappingReferences)
-
forgeMapping
private Assignment forgeMapping(SourceRHS sourceRHS, Type sourceType, Type targetType, AbstractMappingMethodBuilder.ForgeMethodCreator forgeMethodCreator)
-
getName
private java.lang.String getName(Type type)
-
getDescription
public ForgedMethodHistory getDescription()
-
-