Package org.mapstruct.ap.internal.model.source.selector
package org.mapstruct.ap.internal.model.source.selector
Provides strategies for selecting a matching mapping or factory method when mapping from one attribute to another or instantiating the target type of a mapping method, respectively.
-
ClassDescriptionSelection based on type of method (create - or update method).For factory methods, the candidate list is checked if it contains a method with a source parameter which is to be favored compared to factory methods without a source parameter.Selects on inheritance distance, e.g. the amount of inheritance steps from the parameter type.Selector for deduplicating overloaded lifecycle callback methods whose parameter signatures differ only by type hierarchy.Selects those methods from the given input set which match for the requested family of methods: factory methods, lifecycle callback methods, or any other mapping methods.Applies all known
MethodSelectors in order.AMethodSelectorthat selects the most specific result type.This selector selects a best match based on qualifier annotations.SelectedMethod<T extends Method>A selected method with additional metadata that might be required for further usage of the selected method.Context passed to the selectors to get the information they need.This class groups the selection criteria in one classSelector that tries to resolve an ambiguity between methods that contain source parameters andSourceRHStype parameters.This selector selects a best match based on the result type.Selects those methods from the given input set which match the given source and target types (viaMethodMatcher).