Package org.mapstruct.ap.spi
Class BuilderInfo.Builder
- java.lang.Object
-
- org.mapstruct.ap.spi.BuilderInfo.Builder
-
- Enclosing class:
- BuilderInfo
public static class BuilderInfo.Builder extends java.lang.Object
-
-
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 Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BuilderInfobuild()Create theBuilderInfo.BuilderInfo.BuilderbuilderCreationMethod(javax.lang.model.element.ExecutableElement method)BuilderInfo.BuilderbuildMethod(java.util.Collection<javax.lang.model.element.ExecutableElement> methods)
-
-
-
Method Detail
-
builderCreationMethod
public BuilderInfo.Builder builderCreationMethod(javax.lang.model.element.ExecutableElement method)
- Parameters:
method- The creation method for the builder- Returns:
- the builder for chaining
- See Also:
BuilderInfo.getBuilderCreationMethod()
-
buildMethod
public BuilderInfo.Builder buildMethod(java.util.Collection<javax.lang.model.element.ExecutableElement> methods)
- Parameters:
methods- the build methods for the type- Returns:
- the builder for chaining
- See Also:
BuilderInfo.getBuildMethods()
-
build
public BuilderInfo build()
Create theBuilderInfo.- Returns:
- the created
BuilderInfo - Throws:
java.lang.IllegalArgumentException- if the builder creation or build methods arenull
-
-