Class BuilderType
- java.lang.Object
-
- org.mapstruct.ap.internal.model.common.BuilderType
-
public class BuilderType extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private Typebuilderprivate javax.lang.model.element.ExecutableElementbuilderCreationMethodprivate TypebuildingTypeprivate java.util.Collection<javax.lang.model.element.ExecutableElement>buildMethodsprivate TypeowningType
-
Constructor Summary
Constructors Modifier Constructor Description privateBuilderType(Type builder, Type owningType, Type buildingType, javax.lang.model.element.ExecutableElement builderCreationMethod, java.util.Collection<javax.lang.model.element.ExecutableElement> buildMethods)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BuilderTypecreate(BuilderInfo builderInfo, Type typeToBuild, TypeFactory typeFactory, TypeUtils typeUtils)TypegetBuilder()The type of the builder itself.javax.lang.model.element.ExecutableElementgetBuilderCreationMethod()The creation method for the builder.TypegetBuildingType()The type that is being built by the builder.java.util.Collection<javax.lang.model.element.ExecutableElement>getBuildMethods()The build methods that can be invoked to create the type being built.TypegetOwningType()The owning type of the builder, this can be the builder itself, the type that is build by the builder or some other type.
-
-
-
Field Detail
-
builder
private final Type builder
-
owningType
private final Type owningType
-
buildingType
private final Type buildingType
-
builderCreationMethod
private final javax.lang.model.element.ExecutableElement builderCreationMethod
-
buildMethods
private final java.util.Collection<javax.lang.model.element.ExecutableElement> buildMethods
-
-
Method Detail
-
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 javax.lang.model.element.ExecutableElement getBuilderCreationMethod()
The creation method for the builder.- Returns:
- the creation method for the builder
-
getBuildMethods
public java.util.Collection<javax.lang.model.element.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)
-
-