Uses of Interface
org.mapstruct.ap.internal.model.common.Assignment
-
Packages that use Assignment Package Description org.mapstruct.ap.internal.conversion Provides built-in conversions between primitive and wrapper types, strings, dates etc.org.mapstruct.ap.internal.model Meta-model of mapper types, their methods, mappings between properties etc.org.mapstruct.ap.internal.model.assignment Meta-model of assignments.org.mapstruct.ap.internal.model.common Contains types which are shared between the intermediary mapping method model ("source model") and the mapper model.org.mapstruct.ap.internal.processor.creation Contains all helper classes for theMapperCreationProcessor -
-
Uses of Assignment in org.mapstruct.ap.internal.conversion
Methods in org.mapstruct.ap.internal.conversion that return Assignment Modifier and Type Method Description AssignmentConversionProvider. from(ConversionContext conversionContext)Creates the conversion from target to source of a property mapping.AssignmentDateToStringConversion. from(ConversionContext conversionContext)AssignmentReverseConversion. from(ConversionContext conversionContext)AssignmentSimpleConversion. from(ConversionContext conversionContext)AssignmentConversionProvider. to(ConversionContext conversionContext)Creates the conversion from source to target of a property mapping.AssignmentDateToStringConversion. to(ConversionContext conversionContext)AssignmentReverseConversion. to(ConversionContext conversionContext)AssignmentSimpleConversion. to(ConversionContext conversionContext) -
Uses of Assignment in org.mapstruct.ap.internal.model
Classes in org.mapstruct.ap.internal.model that implement Assignment Modifier and Type Class Description classLifecycleCallbackMethodReferenceRepresents a reference to a method that is annotated with@BeforeMappingor@AfterMapping.classMethodReferenceRepresents a reference to another method, e.g.classTypeConversionAn inline conversion between source and target type of a mapping.Fields in org.mapstruct.ap.internal.model declared as Assignment Modifier and Type Field Description private AssignmentCollectionAssignmentBuilder. assignmentprivate AssignmentMethodReference. assignmentA reference to another mapping method or typeConversion in case this is a two-step mapping, e.g.private AssignmentPropertyMapping. assignmentprivate AssignmentSubclassMapping. assignmentprivate AssignmentTypeConversion. assignmentA reference to mapping method in case this is a two-step mapping, e.g.private AssignmentPropertyMapping. defaultValueAssignmentprivate AssignmentContainerMappingMethod. elementAssignmentprivate AssignmentMapMappingMethod. keyAssignmentprivate AssignmentMapMappingMethod. valueAssignmentMethods in org.mapstruct.ap.internal.model that return Assignment Modifier and Type Method Description private AssignmentPropertyMapping.PropertyMappingBuilder. assignToArray(Type targetType, Assignment rightHandSide)private AssignmentPropertyMapping.PropertyMappingBuilder. assignToCollection(Type targetType, AccessorType targetAccessorType, Assignment rhs)private AssignmentPropertyMapping.PropertyMappingBuilder. assignToPlain(Type targetType, AccessorType targetAccessorType, Assignment rightHandSide)private AssignmentPropertyMapping.PropertyMappingBuilder. assignToPlainViaAdder(Assignment rightHandSide)private AssignmentPropertyMapping.PropertyMappingBuilder. assignToPlainViaSetter(Type targetType, Assignment rhs)AssignmentCollectionAssignmentBuilder. build()private AssignmentAbstractBaseBuilder. createAssignment(SourceRHS source, ForgedMethod methodRef)(package private) AssignmentAbstractBaseBuilder. createForgedAssignment(SourceRHS sourceRHS, BuilderType builderType, ForgedMethod forgedMethod)Creates a forged assignment from the providedsourceRHSandforgedMethod.(package private) AssignmentAbstractBaseBuilder. createForgedAssignment(SourceRHS source, ForgedMethod methodRef, MappingMethod mappingMethod)private AssignmentContainerMappingMethodBuilder. forge(SourceRHS sourceRHS, Type sourceType, Type targetType)(package private) AssignmentMapMappingMethod.Builder. forge(SourceRHS sourceRHS, Type sourceType, Type targetType, Message message)private AssignmentPropertyMapping.PropertyMappingBuilder. forge()private AssignmentPropertyMapping.PropertyMappingBuilder. forgeIterableMapping(Type sourceType, Type targetType, SourceRHS source)private AssignmentPropertyMapping.PropertyMappingBuilder. forgeMapMapping(Type sourceType, Type targetType, SourceRHS source)(package private) AssignmentAbstractMappingMethodBuilder. forgeMapping(SourceRHS sourceRHS, Type sourceType, Type targetType)private AssignmentAbstractMappingMethodBuilder. forgeMapping(SourceRHS sourceRHS, Type sourceType, Type targetType, AbstractMappingMethodBuilder.ForgeMethodCreator forgeMethodCreator)private AssignmentPropertyMapping.PropertyMappingBuilder. forgeMapping(SourceRHS sourceRHS)private AssignmentPropertyMapping.PropertyMappingBuilder. forgeMapping(Type sourceType, Type targetType, SourceRHS sourceRHS)private AssignmentPropertyMapping.PropertyMappingBuilder. forgeStreamMapping(Type sourceType, Type targetType, SourceRHS source)(package private) AssignmentAbstractMappingMethodBuilder. forgeSubclassMapping(SourceRHS sourceRHS, Type sourceType, Type targetType, MappingReferences mappingReferences)private AssignmentPropertyMapping.PropertyMappingBuilder. forgeWithElementMapping(Type sourceType, Type targetType, SourceRHS source, ContainerMappingMethodBuilder<?,? extends ContainerMappingMethod> builder)AssignmentMethodReference. getAssignment()AssignmentPropertyMapping. getAssignment()AssignmentTypeConversion. getAssignment()AssignmentPropertyMapping. getDefaultValueAssignment()private AssignmentPropertyMapping.PropertyMappingBuilder. getDefaultValueAssignment(Assignment rhs)AssignmentContainerMappingMethod. getElementAssignment()private AssignmentPropertyMapping.ConstantMappingBuilder. getEnumAssignment()AssignmentMapMappingMethod. getKeyAssignment()AssignmentMappingBuilderContext.MappingResolver. getTargetAssignment(Method mappingMethod, ForgedMethodHistory description, Type targetType, FormattingParameters formattingParameters, SelectionCriteria criteria, SourceRHS sourceRHS, javax.lang.model.element.AnnotationMirror positionHint, java.util.function.Supplier<Assignment> forger)returns a parameter assignmentAssignmentMapMappingMethod. getValueAssignment()protected abstract AssignmentContainerMappingMethodBuilder. getWrapper(Assignment assignment, Method method)protected AssignmentIterableMappingMethod.Builder. getWrapper(Assignment assignment, Method method)protected AssignmentStreamMappingMethod.Builder. getWrapper(Assignment assignment, Method method)Methods in org.mapstruct.ap.internal.model with parameters of type Assignment Modifier and Type Method Description CollectionAssignmentBuilderCollectionAssignmentBuilder. assignment(Assignment assignment)private AssignmentPropertyMapping.PropertyMappingBuilder. assignToArray(Type targetType, Assignment rightHandSide)private AssignmentPropertyMapping.PropertyMappingBuilder. assignToCollection(Type targetType, AccessorType targetAccessorType, Assignment rhs)private AssignmentPropertyMapping.PropertyMappingBuilder. assignToPlain(Type targetType, AccessorType targetAccessorType, Assignment rightHandSide)private AssignmentPropertyMapping.PropertyMappingBuilder. assignToPlainViaAdder(Assignment rightHandSide)private AssignmentPropertyMapping.PropertyMappingBuilder. assignToPlainViaSetter(Type targetType, Assignment rhs)private booleanCollectionAssignmentBuilder. canBeMappedOrDirectlyAssigned(Assignment result)private AssignmentPropertyMapping.PropertyMappingBuilder. getDefaultValueAssignment(Assignment rhs)protected abstract AssignmentContainerMappingMethodBuilder. getWrapper(Assignment assignment, Method method)protected AssignmentIterableMappingMethod.Builder. getWrapper(Assignment assignment, Method method)protected AssignmentStreamMappingMethod.Builder. getWrapper(Assignment assignment, Method method)protected abstract MContainerMappingMethodBuilder. instantiateMappingMethod(Method method, java.util.Collection<java.lang.String> existingVariables, Assignment assignment, MethodReference factoryMethod, boolean mapNullToDefault, java.lang.String loopVariableName, java.util.List<LifecycleCallbackMethodReference> beforeMappingMethods, java.util.List<LifecycleCallbackMethodReference> afterMappingMethods, SelectionParameters selectionParameters)protected IterableMappingMethodIterableMappingMethod.Builder. instantiateMappingMethod(Method method, java.util.Collection<java.lang.String> existingVariables, Assignment assignment, MethodReference factoryMethod, boolean mapNullToDefault, java.lang.String loopVariableName, java.util.List<LifecycleCallbackMethodReference> beforeMappingMethods, java.util.List<LifecycleCallbackMethodReference> afterMappingMethods, SelectionParameters selectionParameters)protected StreamMappingMethodStreamMappingMethod.Builder. instantiateMappingMethod(Method method, java.util.Collection<java.lang.String> existingVariables, Assignment assignment, MethodReference factoryMethod, boolean mapNullToDefault, java.lang.String loopVariableName, java.util.List<LifecycleCallbackMethodReference> beforeMappingMethods, java.util.List<LifecycleCallbackMethodReference> afterMappingMethods, SelectionParameters selectionParameters)voidMethodReference. setAssignment(Assignment assignment)voidTypeConversion. setAssignment(Assignment assignment)private booleanCollectionAssignmentBuilder. setterWrapperNeedsSourceNullCheck(Assignment rhs)Checks whether the setter wrapper should include a null / presence check or notprivate booleanPropertyMapping.PropertyMappingBuilder. setterWrapperNeedsSourceNullCheck(Assignment rhs, Type targetType)Checks whether the setter wrapper should include a null / presence check or notMethod parameters in org.mapstruct.ap.internal.model with type arguments of type Assignment Modifier and Type Method Description AssignmentMappingBuilderContext.MappingResolver. getTargetAssignment(Method mappingMethod, ForgedMethodHistory description, Type targetType, FormattingParameters formattingParameters, SelectionCriteria criteria, SourceRHS sourceRHS, javax.lang.model.element.AnnotationMirror positionHint, java.util.function.Supplier<Assignment> forger)returns a parameter assignmentConstructors in org.mapstruct.ap.internal.model with parameters of type Assignment Constructor Description ContainerMappingMethod(Method method, java.util.Collection<java.lang.String> existingVariables, Assignment parameterAssignment, MethodReference factoryMethod, boolean mapNullToDefault, java.lang.String loopVariableName, java.util.List<LifecycleCallbackMethodReference> beforeMappingReferences, java.util.List<LifecycleCallbackMethodReference> afterMappingReferences, SelectionParameters selectionParameters)IterableMappingMethod(Method method, java.util.Collection<java.lang.String> existingVariables, Assignment parameterAssignment, MethodReference factoryMethod, boolean mapNullToDefault, java.lang.String loopVariableName, java.util.List<LifecycleCallbackMethodReference> beforeMappingReferences, java.util.List<LifecycleCallbackMethodReference> afterMappingReferences, SelectionParameters selectionParameters)MapMappingMethod(Method method, java.util.Collection<java.lang.String> existingVariableNames, Assignment keyAssignment, Assignment valueAssignment, MethodReference factoryMethod, boolean mapNullToDefault, java.util.List<LifecycleCallbackMethodReference> beforeMappingReferences, java.util.List<LifecycleCallbackMethodReference> afterMappingReferences)PropertyMapping(java.lang.String name, java.lang.String sourceBeanName, java.lang.String targetWriteAccessorName, ReadAccessor targetReadAccessorProvider, Type targetType, Assignment assignment, java.util.Set<java.lang.String> dependsOn, Assignment defaultValueAssignment, boolean constructorMapping)PropertyMapping(java.lang.String name, java.lang.String targetWriteAccessorName, ReadAccessor targetReadAccessorProvider, Type targetType, Assignment propertyAssignment, java.util.Set<java.lang.String> dependsOn, Assignment defaultValueAssignment, boolean constructorMapping)StreamMappingMethod(Method method, java.util.Collection<java.lang.String> existingVariables, Assignment parameterAssignment, MethodReference factoryMethod, boolean mapNullToDefault, java.lang.String loopVariableName, java.util.List<LifecycleCallbackMethodReference> beforeMappingReferences, java.util.List<LifecycleCallbackMethodReference> afterMappingReferences, SelectionParameters selectionParameters, java.util.Set<Type> helperImports)SubclassMapping(Type sourceType, java.lang.String sourceArgument, Type targetType, Assignment assignment) -
Uses of Assignment in org.mapstruct.ap.internal.model.assignment
Classes in org.mapstruct.ap.internal.model.assignment that implement Assignment Modifier and Type Class Description classAdderWrapperWraps the assignment in a target setter.classArrayCopyWrapperDecorates the assignment as a Map or Collection constructorclassAssignmentWrapperBase class for decorators (wrappers).classEnumConstantWrapperclassExistingInstanceSetterWrapperForCollectionsAndMapsThis wrapper handles the situation where an assignment is done for an update method.classGetterWrapperForCollectionsAndMapsThis wrapper handles the situation were an assignment must be done via a target getter method because there is no setter available.classJava8FunctionWrapperWraps the assignment in a Function to be used in Java 8 map methodsclassLocalVarWrapperDecorates an assignment as local variable.classNewInstanceSetterWrapperForCollectionsAndMapsThis wrapper handles the situation where an assignment is done via the setter, while creating the collection or map using a no-args constructor.classReturnWrapperDecorates an assignment as a return variable.classSetterWrapperWraps the assignment in a target setter.classSetterWrapperForCollectionsAndMapsThis wrapper handles the situation where an assignment is done via the setter, without doing anything special.classSetterWrapperForCollectionsAndMapsWithNullCheckThis wrapper handles the situation where an assignment is done via the setter and a null check is needed.classStreamAdderWrapperWraps the assignment in a target setter.classUpdateWrapperWraps the assignment in a target setter.classWrapperForCollectionsAndMapsThis is the base class for theGetterWrapperForCollectionsAndMapsandSetterWrapperForCollectionsAndMapsFields in org.mapstruct.ap.internal.model.assignment declared as Assignment Modifier and Type Field Description private AssignmentAssignmentWrapper. decoratedAssignmentprivate AssignmentUpdateWrapper. factoryMethodMethods in org.mapstruct.ap.internal.model.assignment that return Assignment Modifier and Type Method Description AssignmentAssignmentWrapper. getAssignment()AssignmentUpdateWrapper. getFactoryMethod()Methods in org.mapstruct.ap.internal.model.assignment with parameters of type Assignment Modifier and Type Method Description private static TypeUpdateWrapper. determineImplType(Assignment factoryMethod, Type targetType)voidAssignmentWrapper. setAssignment(Assignment assignment)Constructors in org.mapstruct.ap.internal.model.assignment with parameters of type Assignment Constructor Description AdderWrapper(Assignment rhs, java.util.List<Type> thrownTypesToExclude, boolean fieldAssignment, java.lang.String adderIteratorName)ArrayCopyWrapper(Assignment rhs, java.lang.String targetPropertyName, Type arraysType, Type targetType, boolean fieldAssignment, boolean setExplicitlyToNull, boolean setExplicitlyToDefault)AssignmentWrapper(Assignment decoratedAssignment, boolean fieldAssignment)EnumConstantWrapper(Assignment decoratedAssignment, Type enumType)ExistingInstanceSetterWrapperForCollectionsAndMaps(Assignment decoratedAssignment, java.util.List<Type> thrownTypesToExclude, Type targetType, NullValueCheckStrategyGem nvcs, NullValuePropertyMappingStrategyGem nvpms, TypeFactory typeFactory, boolean fieldAssignment)GetterWrapperForCollectionsAndMaps(Assignment decoratedAssignment, java.util.List<Type> thrownTypesToExclude, Type targetType, boolean fieldAssignment)Java8FunctionWrapper(Assignment decoratedAssignment)Java8FunctionWrapper(Assignment decoratedAssignment, Type functionType)LocalVarWrapper(Assignment decoratedAssignment, java.util.List<Type> thrownTypesToExclude, Type targetType, boolean fieldAssignment)NewInstanceSetterWrapperForCollectionsAndMaps(Assignment decoratedAssignment, java.util.List<Type> thrownTypesToExclude, Type targetType, TypeFactory typeFactory, boolean fieldAssignment)ReturnWrapper(Assignment decoratedAssignment)SetterWrapper(Assignment rhs, java.util.List<Type> thrownTypesToExclude, boolean fieldAssignment)SetterWrapper(Assignment rhs, java.util.List<Type> thrownTypesToExclude, boolean fieldAssignment, boolean includeSourceNullCheck, boolean setExplicitlyToNull, boolean setExplicitlyToDefault)SetterWrapperForCollectionsAndMaps(Assignment decoratedAssignment, java.util.List<Type> thrownTypesToExclude, Type targetType, boolean fieldAssignment)SetterWrapperForCollectionsAndMapsWithNullCheck(Assignment decoratedAssignment, java.util.List<Type> thrownTypesToExclude, Type targetType, TypeFactory typeFactory, boolean fieldAssignment)StreamAdderWrapper(Assignment rhs, java.util.List<Type> thrownTypesToExclude, boolean fieldAssignment, java.lang.String targetPropertyName)UpdateWrapper(Assignment decoratedAssignment, java.util.List<Type> thrownTypesToExclude, Assignment factoryMethod, boolean fieldAssignment, Type targetType, boolean includeSourceNullCheck, boolean setExplicitlyToNull, boolean setExplicitlyToDefault)WrapperForCollectionsAndMaps(Assignment rhs, java.util.List<Type> thrownTypesToExclude, Type targetType, boolean fieldAssignment) -
Uses of Assignment in org.mapstruct.ap.internal.model.common
Classes in org.mapstruct.ap.internal.model.common that implement Assignment Modifier and Type Class Description classSourceRHSSourceRHS Assignment.Methods in org.mapstruct.ap.internal.model.common with parameters of type Assignment Modifier and Type Method Description voidAssignment. setAssignment(Assignment assignment)An assignment in itself can wrap another assignment.voidSourceRHS. setAssignment(Assignment assignment) -
Uses of Assignment in org.mapstruct.ap.internal.processor.creation
Fields in org.mapstruct.ap.internal.processor.creation declared as Assignment Modifier and Type Field Description private AssignmentMappingResolverImpl.ConversionAssignment. assignmentprivate AssignmentMappingResolverImpl.ConversionMethod. resultprivate AssignmentMappingResolverImpl.MethodConversion. resultprivate AssignmentMappingResolverImpl.MethodMethod. resultFields in org.mapstruct.ap.internal.processor.creation with type parameters of type Assignment Modifier and Type Field Description private java.util.function.Function<SelectedMethod<T>,Assignment>MappingResolverImpl.ConversionMethod. createprivate java.util.function.Function<SelectedMethod<T>,Assignment>MappingResolverImpl.MethodConversion. createprivate java.util.function.Supplier<Assignment>MappingResolverImpl.ResolvingAttempt. forgerprivate java.util.function.Function<SelectedMethod<T1>,Assignment>MappingResolverImpl.MethodMethod. xCreateprivate java.util.function.Function<SelectedMethod<T2>,Assignment>MappingResolverImpl.MethodMethod. yCreateMethods in org.mapstruct.ap.internal.processor.creation that return Assignment Modifier and Type Method Description (package private) AssignmentMappingResolverImpl.ConversionAssignment. getAssignment()(package private) static AssignmentMappingResolverImpl.ConversionMethod. getBestMatch(MappingResolverImpl.ResolvingAttempt att, Type sourceType, Type targetType)(package private) static AssignmentMappingResolverImpl.MethodConversion. getBestMatch(MappingResolverImpl.ResolvingAttempt att, Type sourceType, Type targetType)(package private) static AssignmentMappingResolverImpl.MethodMethod. getBestMatch(MappingResolverImpl.ResolvingAttempt att, Type sourceType, Type targetType)AssignmentMappingResolverImpl. getTargetAssignment(Method mappingMethod, ForgedMethodHistory description, Type targetType, FormattingParameters formattingParameters, SelectionCriteria criteria, SourceRHS sourceRHS, javax.lang.model.element.AnnotationMirror positionHint, java.util.function.Supplier<Assignment> forger)private AssignmentMappingResolverImpl.ResolvingAttempt. getTargetAssignment(Type sourceType, Type targetType)private AssignmentMappingResolverImpl.ResolvingAttempt. toBuildInRef(SelectedMethod<BuiltInMethod> selectedMethod)private AssignmentMappingResolverImpl.ResolvingAttempt. toMethodRef(SelectedMethod<Method> selectedMethod)Method parameters in org.mapstruct.ap.internal.processor.creation with type arguments of type Assignment Modifier and Type Method Description AssignmentMappingResolverImpl. getTargetAssignment(Method mappingMethod, ForgedMethodHistory description, Type targetType, FormattingParameters formattingParameters, SelectionCriteria criteria, SourceRHS sourceRHS, javax.lang.model.element.AnnotationMirror positionHint, java.util.function.Supplier<Assignment> forger)Constructors in org.mapstruct.ap.internal.processor.creation with parameters of type Assignment Constructor Description ConversionAssignment(Type sourceType, Type targetType, Assignment assignment)Constructor parameters in org.mapstruct.ap.internal.processor.creation with type arguments of type Assignment Constructor Description ConversionMethod(MappingResolverImpl.ResolvingAttempt attempt, java.util.List<T> methods, java.util.function.Function<SelectedMethod<T>,Assignment> create)MethodConversion(MappingResolverImpl.ResolvingAttempt attempt, java.util.List<T> methods, java.util.function.Function<SelectedMethod<T>,Assignment> create)MethodMethod(MappingResolverImpl.ResolvingAttempt attempt, java.util.List<T1> xMethods, java.util.List<T2> yMethods, java.util.function.Function<SelectedMethod<T1>,Assignment> xCreate, java.util.function.Function<SelectedMethod<T2>,Assignment> yCreate)ResolvingAttempt(java.util.List<Method> sourceModel, Method mappingMethod, ForgedMethodHistory description, FormattingParameters formattingParameters, SourceRHS sourceRHS, SelectionCriteria criteria, javax.lang.model.element.AnnotationMirror positionHint, java.util.function.Supplier<Assignment> forger, java.util.List<BuiltInMethod> builtIns, FormattingMessager messager, boolean verboseLogging)
-