Class SourceMethod.Builder
- java.lang.Object
-
- org.mapstruct.ap.internal.model.source.SourceMethod.Builder
-
- Enclosing class:
- SourceMethod
public static class SourceMethod.Builder extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private BeanMappingOptionsbeanMappingprivate ParameterProvidedMethodscontextProvidedMethodsprivate TypedeclaringMapperprivate TypedefiningTypeprivate EnumMappingOptionsenumMappingOptionsprivate java.util.List<Type>exceptionTypesprivate javax.lang.model.element.ExecutableElementexecutableprivate IterableMappingOptionsiterableMappingprivate MapMappingOptionsmapMappingprivate MapperOptionsmapperprivate java.util.Set<MappingOptions>mappingsprivate java.util.List<Parameter>parametersprivate java.util.List<SourceMethod>prototypeMethodsprivate TypereturnTypeprivate java.util.Set<SubclassMappingOptions>subclassMappingsprivate SubclassValidatorsubclassValidatorprivate TypeFactorytypeFactoryprivate java.util.List<Type>typeParametersprivate TypeUtilstypeUtilsprivate java.util.List<ValueMappingOptions>valueMappingsprivate booleanverboseLogging
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Field Detail
-
declaringMapper
private Type declaringMapper
-
definingType
private Type definingType
-
executable
private javax.lang.model.element.ExecutableElement executable
-
parameters
private java.util.List<Parameter> parameters
-
returnType
private Type returnType
-
exceptionTypes
private java.util.List<Type> exceptionTypes
-
mappings
private java.util.Set<MappingOptions> mappings
-
iterableMapping
private IterableMappingOptions iterableMapping
-
mapMapping
private MapMappingOptions mapMapping
-
beanMapping
private BeanMappingOptions beanMapping
-
typeUtils
private TypeUtils typeUtils
-
typeFactory
private TypeFactory typeFactory
-
mapper
private MapperOptions mapper
-
prototypeMethods
private java.util.List<SourceMethod> prototypeMethods
-
valueMappings
private java.util.List<ValueMappingOptions> valueMappings
-
enumMappingOptions
private EnumMappingOptions enumMappingOptions
-
contextProvidedMethods
private ParameterProvidedMethods contextProvidedMethods
-
typeParameters
private java.util.List<Type> typeParameters
-
subclassMappings
private java.util.Set<SubclassMappingOptions> subclassMappings
-
verboseLogging
private boolean verboseLogging
-
subclassValidator
private SubclassValidator subclassValidator
-
-
Method Detail
-
setDeclaringMapper
public SourceMethod.Builder setDeclaringMapper(Type declaringMapper)
-
setExecutable
public SourceMethod.Builder setExecutable(javax.lang.model.element.ExecutableElement executable)
-
setParameters
public SourceMethod.Builder setParameters(java.util.List<Parameter> parameters)
-
setReturnType
public SourceMethod.Builder setReturnType(Type returnType)
-
setExceptionTypes
public SourceMethod.Builder setExceptionTypes(java.util.List<Type> exceptionTypes)
-
setMappingOptions
public SourceMethod.Builder setMappingOptions(java.util.Set<MappingOptions> mappings)
-
setIterableMappingOptions
public SourceMethod.Builder setIterableMappingOptions(IterableMappingOptions iterableMapping)
-
setMapMappingOptions
public SourceMethod.Builder setMapMappingOptions(MapMappingOptions mapMapping)
-
setBeanMappingOptions
public SourceMethod.Builder setBeanMappingOptions(BeanMappingOptions beanMapping)
-
setValueMappingOptionss
public SourceMethod.Builder setValueMappingOptionss(java.util.List<ValueMappingOptions> valueMappings)
-
setEnumMappingOptions
public SourceMethod.Builder setEnumMappingOptions(EnumMappingOptions enumMappingOptions)
-
setSubclassMappings
public SourceMethod.Builder setSubclassMappings(java.util.Set<SubclassMappingOptions> subclassMappings)
-
setSubclassValidator
public SourceMethod.Builder setSubclassValidator(SubclassValidator subclassValidator)
-
setTypeUtils
public SourceMethod.Builder setTypeUtils(TypeUtils typeUtils)
-
setTypeFactory
public SourceMethod.Builder setTypeFactory(TypeFactory typeFactory)
-
setMapper
public SourceMethod.Builder setMapper(MapperOptions mapper)
-
setPrototypeMethods
public SourceMethod.Builder setPrototypeMethods(java.util.List<SourceMethod> prototypeMethods)
-
setDefininingType
public SourceMethod.Builder setDefininingType(Type definingType)
-
setContextProvidedMethods
public SourceMethod.Builder setContextProvidedMethods(ParameterProvidedMethods contextProvidedMethods)
-
setVerboseLogging
public SourceMethod.Builder setVerboseLogging(boolean verboseLogging)
-
build
public SourceMethod build()
-
-