Package org.mapstruct.ap.internal.model
Class PropertyMapping.PropertyMappingBuilder
java.lang.Object
org.mapstruct.ap.internal.model.PropertyMapping.PropertyMappingBuilder
- Enclosing class:
PropertyMapping
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected MappingBuilderContextprotected Methodprotected PropertyMapping.PropertyMappingBuilderprotected AnnotationMirrorprotected Stringprotected BuilderTypeprotected Stringprotected ReadAccessorprotected Typeprotected Accessorprotected AccessorType -
Method Summary
Modifier and TypeMethodDescriptionbuild()conditionJavaExpression(String conditionJavaExpression) defaultJavaExpression(String defaultJavaExpression) defaultValue(String defaultValue) existingVariableNames(Set<String> existingVariableNames) forceUpdateMethod(boolean forceUpdateMethod) Force the created mapping to use update methods when forging a method.forgedNamedBased(boolean forgedNamedBased) forgeMethodWithMappingReferences(MappingReferences mappingReferences) formattingParameters(FormattingParameters formattingParameters) protected booleanmappingContext(MappingBuilderContext mappingContext) options(DelegatingOptions options) selectionParameters(SelectionParameters selectionParameters) sourceMethod(Method sourceMethod) sourcePropertyName(String sourcePropertyName) sourceReference(SourceReference sourceReference) target(String targetPropertyName, ReadAccessor targetReadAccessor, Accessor targetWriteAccessor)
-
Field Details
-
targetWriteAccessor
-
targetWriteAccessorType
-
targetType
-
targetBuilderType
-
targetReadAccessor
-
targetPropertyName
-
sourcePropertyName
-
dependsOn
-
existingVariableNames
-
positionHint
-
myself
-
ctx
-
method
-
-
Method Details
-
sourceReference
-
selectionParameters
public PropertyMapping.PropertyMappingBuilder selectionParameters(SelectionParameters selectionParameters) -
formattingParameters
public PropertyMapping.PropertyMappingBuilder formattingParameters(FormattingParameters formattingParameters) -
defaultValue
-
defaultJavaExpression
-
conditionJavaExpression
public PropertyMapping.PropertyMappingBuilder conditionJavaExpression(String conditionJavaExpression) -
forgeMethodWithMappingReferences
public PropertyMapping.PropertyMappingBuilder forgeMethodWithMappingReferences(MappingReferences mappingReferences) -
forceUpdateMethod
Force the created mapping to use update methods when forging a method.- Parameters:
forceUpdateMethod- whether the mapping should force update method for forged mappings- Returns:
- the builder for chaining
-
forgedNamedBased
- Parameters:
forgedNamedBased- mapping is based on forging- Returns:
- the builder for chaining
-
options
-
build
-
sourceMethod
-
target
public PropertyMapping.PropertyMappingBuilder target(String targetPropertyName, ReadAccessor targetReadAccessor, Accessor targetWriteAccessor) -
sourcePropertyName
-
dependsOn
-
existingVariableNames
public PropertyMapping.PropertyMappingBuilder existingVariableNames(Set<String> existingVariableNames) -
isFieldAssignment
protected boolean isFieldAssignment() -
mappingContext
-
method
-