Class BuilderType

java.lang.Object
org.mapstruct.ap.internal.model.common.BuilderType

public class BuilderType extends Object
Represents the information about a builder. How it can be constructed, the type it is building etc.
Author:
Filip Hrisafov
  • Method Details

    • getBuilder

      public Type getBuilder()
      The type of the builder itself.
      Returns:
      the type for the builder
    • getOwningType

      public Type getOwningType()
      The owning type of the builder, this can be the builder itself, the type that is build by the builder or some other type.
      Returns:
      the owning type
    • getBuildingType

      public Type getBuildingType()
      The type that is being built by the builder.
      Returns:
      the type that is being built
    • getBuilderCreationMethod

      public ExecutableElement getBuilderCreationMethod()
      The creation method for the builder.
      Returns:
      the creation method for the builder
    • getBuildMethods

      public Collection<ExecutableElement> getBuildMethods()
      The build methods that can be invoked to create the type being built.
      Returns:
      the build methods that can be invoked to create the type being built
    • create

      public static BuilderType create(BuilderInfo builderInfo, Type typeToBuild, TypeFactory typeFactory, TypeUtils typeUtils)