Package org.mapstruct.ap.internal.model
Class AbstractMappingMethodBuilder<B extends AbstractMappingMethodBuilder<B,M>,M extends MappingMethod>
- java.lang.Object
-
- 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 Object
An abstract builder that can be reused for buildingMappingMethod
(s).- Author:
- Filip Hrisafov
-
-
Constructor Summary
Constructors Constructor Description AbstractMappingMethodBuilder(Class<B> selfType)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract M
build()
ForgedMethodHistory
getDescription()
B
mappingContext(MappingBuilderContext mappingContext)
B
method(Method sourceMethod)
protected abstract boolean
shouldUsePropertyNamesInHistory()
-
-
-
Field Detail
-
myself
protected B extends org.mapstruct.ap.internal.model.AbstractBaseBuilder<B> myself
-
ctx
protected MappingBuilderContext ctx
-
method
protected Method method
-
-
Method Detail
-
build
public abstract M build()
-
shouldUsePropertyNamesInHistory
protected abstract boolean shouldUsePropertyNamesInHistory()
- Returns:
true
if property names should be used for the creation of theForgedMethodHistory
.
-
getDescription
public ForgedMethodHistory getDescription()
-
mappingContext
public B mappingContext(MappingBuilderContext mappingContext)
-
-