Package org.mapstruct.ap.spi
Class BuilderInfo
- java.lang.Object
-
- org.mapstruct.ap.spi.BuilderInfo
-
public class BuilderInfo extends java.lang.ObjectHolder for the builder information.- Since:
- 1.3
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBuilderInfo.Builder
-
Field Summary
Fields Modifier and Type Field Description private javax.lang.model.element.ExecutableElementbuilderCreationMethodprivate java.util.Collection<javax.lang.model.element.ExecutableElement>buildMethods
-
Constructor Summary
Constructors Modifier Constructor Description privateBuilderInfo(javax.lang.model.element.ExecutableElement builderCreationMethod, java.util.Collection<javax.lang.model.element.ExecutableElement> buildMethods)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.lang.model.element.ExecutableElementgetBuilderCreationMethod()The method that can be used for instantiating a builder.java.util.Collection<javax.lang.model.element.ExecutableElement>getBuildMethods()The methods that can be used to build the type being built.
-
-
-
Method Detail
-
getBuilderCreationMethod
public javax.lang.model.element.ExecutableElement getBuilderCreationMethod()
The method that can be used for instantiating a builder. This can be:- A
public staticmethod in the type being build - A
public staticmethod in the builder itself - The default constructor of the builder
- Returns:
- the creation method for the builder
- A
-
getBuildMethods
public java.util.Collection<javax.lang.model.element.ExecutableElement> getBuildMethods()
The methods that can be used to build the type being built. This should bepublicmethods within the builder itself- Returns:
- the build method for the type
-
-