Class AbstractMappingMethodBuilder<B extends AbstractMappingMethodBuilder<B,M>,M extends MappingMethod>

java.lang.Object
org.mapstruct.ap.internal.model.AbstractMappingMethodBuilder<B,M>
Type Parameters:
B - the builder itself that needs to be used for chaining
M - the method that the builder builds
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 building MappingMethod(s).
Author:
Filip Hrisafov
  • Field Details

  • Constructor Details

    • AbstractMappingMethodBuilder

      public AbstractMappingMethodBuilder(Class<B> selfType)
  • Method Details

    • build

      public abstract M build()
    • shouldUsePropertyNamesInHistory

      protected abstract boolean shouldUsePropertyNamesInHistory()
      Returns:
      true if property names should be used for the creation of the ForgedMethodHistory.
    • getDescription

      public ForgedMethodHistory getDescription()
    • getMethodAnnotations

      public List<Annotation> getMethodAnnotations()
    • mappingContext

      public B mappingContext(MappingBuilderContext mappingContext)
    • method

      public B method(Method sourceMethod)