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.
-
Class Summary Class Description CreateOrUpdateSelector Selection based on type of method (create - or update method).FactoryParameterSelector 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.InheritanceSelector Selects on inheritance distance, e.g. the amount of inheritance steps from the parameter type.MethodFamilySelector 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.MethodSelectors Applies all knownMethodSelector
s in order.QualifierSelector 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.SelectionCriteria This class groups the selection criteria in one classSourceRhsSelector Selector that tries to resolve an ambiquity between methods that contain source parameters andSourceRHS
type parameters.TargetTypeSelector This selector selects a best match based on the result type.TypeSelector Selects those methods from the given input set which match the given source and target types (viaMethodMatcher
). -
Enum Summary Enum Description SelectionCriteria.Type