Uses of Interface
org.mapstruct.ap.internal.model.source.Method
-
Packages that use Method 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.beanmapping helper classes used inBeanMappingMethodorg.mapstruct.ap.internal.model.source Intermediary representation of mapping methods as retrieved from via the annotation processing API.org.mapstruct.ap.internal.model.source.builtin Contains "built-in methods" which may be added as private methods to a generated mapper.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.org.mapstruct.ap.internal.processor Contains model processors which perform tasks such as retrieving mapping methods, creating a model representation and writing the model into Java source files.org.mapstruct.ap.internal.processor.creation Contains all helper classes for theMapperCreationProcessor -
-
Uses of Method in org.mapstruct.ap.internal.conversion
Classes in org.mapstruct.ap.internal.conversion that implement Method Modifier and Type Class Description classCreateDecimalFormatHelperMethod that creates aDecimalFormatDecimalFormat df = new DecimalFormat( numberFormat )with setParseBigDecimal set to true. -
Uses of Method in org.mapstruct.ap.internal.model
Classes in org.mapstruct.ap.internal.model that implement Method Modifier and Type Class Description classForgedMethodThis method will be generated in absence of a suitable abstract method to implement.classHelperMethodA non mapping method to be generated.Fields in org.mapstruct.ap.internal.model declared as Method Modifier and Type Field Description private MethodForgedMethod. basedOnprotected MethodAbstractBaseBuilder. methodprivate MethodCollectionAssignmentBuilder. methodprivate MethodNestedTargetPropertyMappingHolder.Builder. methodprivate MethodValueMappingMethod.Builder. methodMethods in org.mapstruct.ap.internal.model with parameters of type Method Modifier and Type Method Description static java.util.List<LifecycleCallbackMethodReference>LifecycleMethodResolver. afterMappingMethods(Method method, Type alternativeTarget, SelectionParameters selectionParameters, MappingBuilderContext ctx, java.util.Set<java.lang.String> existingVariableNames)static java.util.List<LifecycleCallbackMethodReference>LifecycleMethodResolver. afterMappingMethods(Method method, SelectionParameters selectionParameters, MappingBuilderContext ctx, java.util.Set<java.lang.String> existingVariableNames)static java.util.List<LifecycleCallbackMethodReference>LifecycleMethodResolver. beforeMappingMethods(Method method, Type alternativeTarget, SelectionParameters selectionParameters, MappingBuilderContext ctx, java.util.Set<java.lang.String> existingVariableNames)static java.util.List<LifecycleCallbackMethodReference>LifecycleMethodResolver. beforeMappingMethods(Method method, SelectionParameters selectionParameters, MappingBuilderContext ctx, java.util.Set<java.lang.String> existingVariableNames)private static java.util.List<LifecycleCallbackMethodReference>LifecycleMethodResolver. collectLifecycleCallbackMethods(Method method, Type targetType, SelectionParameters selectionParameters, java.util.List<SourceMethod> callbackMethods, MappingBuilderContext ctx, java.util.Set<java.lang.String> existingVariableNames)ForgedMethodAbstractMappingMethodBuilder.ForgeMethodCreator. createMethod(java.lang.String name, Type sourceType, Type returnType, Method basedOn, ForgedMethodHistory history, boolean forgedNameBased)private java.util.List<ValueMappingMethod.MappingEntry>ValueMappingMethod.Builder. enumToEnumMapping(Method method, Type sourceType, Type targetType)private java.util.List<ValueMappingMethod.MappingEntry>ValueMappingMethod.Builder. enumToStringMapping(Method method, Type sourceType)private static SelectedMethod<SourceMethod>PresenceCheckMethodResolver. findMatchingPresenceCheckMethod(Method method, SelectionParameters selectionParameters, MappingBuilderContext ctx)static ForgedMethodForgedMethod. forElementMapping(java.lang.String name, Type sourceType, Type returnType, Method basedOn, ForgedMethodHistory history, boolean forgedNameBased)Creates a new forged method for mapping a collection element, map key/value or stream elementstatic MethodReferenceMethodReference. forForgedMethod(Method method, java.util.List<ParameterBinding> parameterBindings)static MethodReferenceMethodReference. forMapperReference(Method method, MapperReference declaringMapper, java.util.List<ParameterBinding> parameterBindings)static LifecycleCallbackMethodReferenceLifecycleCallbackMethodReference. forMethodReference(SelectedMethod<SourceMethod> lifecycleMethod, MapperReference mapperReference, Method containingMethod, java.util.Set<java.lang.String> existingVariableNames)static ForgedMethodForgedMethod. forParameterMapping(java.lang.String name, Type sourceType, Type returnType, Method basedOn)Creates a new forged method with the given name for mapping a method parameter to a property.static LifecycleCallbackMethodReferenceLifecycleCallbackMethodReference. forParameterProvidedMethod(SelectedMethod<SourceMethod> lifecycleMethod, Parameter providingParameter, Method containingMethod, java.util.Set<java.lang.String> existingVariableNames)static MethodReferenceMethodReference. forParameterProvidedMethod(Method method, Parameter providingParameter, java.util.List<ParameterBinding> parameterBindings)static ForgedMethodForgedMethod. forPropertyMapping(java.lang.String name, Type sourceType, Type returnType, java.util.List<Parameter> parameters, Method basedOn, ForgedMethodHistory history, MappingReferences mappingReferences, boolean forgedNameBased)Creates a new forged method for mapping a bean property to a propertystatic ForgedMethodForgedMethod. forSubclassMapping(java.lang.String name, Type sourceType, Type returnType, Method basedOn, MappingReferences mappingReferences, ForgedMethodHistory history, boolean forgedNameBased)Creates a new forged method for mapping a SubclassMapping elementprivate static java.util.List<SourceMethod>LifecycleMethodResolver. getAllAvailableMethods(Method method, java.util.List<SourceMethod> sourceModelMethods)private static java.util.List<SourceMethod>ObjectFactoryMethodResolver. getAllAvailableMethods(Method method, java.util.List<SourceMethod> sourceModelMethods)private static java.util.List<SourceMethod>PresenceCheckMethodResolver. getAllAvailableMethods(Method method, java.util.List<SourceMethod> sourceModelMethods)static MethodReferenceObjectFactoryMethodResolver. getBuilderFactoryMethod(Method method, BuilderType builder)static MethodReferenceBuilderFinisherMethodResolver. getBuilderFinisherMethod(Method method, BuilderType builderType, MappingBuilderContext ctx)static MethodReferenceObjectFactoryMethodResolver. getFactoryMethod(Method method, Type alternativeTarget, SelectionParameters selectionParameters, MappingBuilderContext ctx)returns a no arg factory methodstatic MethodReferenceObjectFactoryMethodResolver. getFactoryMethod(Method method, SelectionParameters selectionParameters, MappingBuilderContext ctx)returns a no arg factory methodstatic MethodReferenceObjectFactoryMethodResolver. getFactoryMethodReference(Method method, SelectedMethod<SourceMethod> matchingFactoryMethod, MappingBuilderContext ctx)static java.util.List<SelectedMethod<SourceMethod>>ObjectFactoryMethodResolver. getMatchingFactoryMethods(Method method, Type alternativeTarget, SelectionParameters selectionParameters, MappingBuilderContext ctx)static PresenceCheckPresenceCheckMethodResolver. getPresenceCheck(Method method, SelectionParameters selectionParameters, MappingBuilderContext ctx)private static MethodReferencePresenceCheckMethodResolver. getPresenceCheckMethodReference(Method method, SelectedMethod<SourceMethod> matchingMethod, MappingBuilderContext ctx)private SelectionParametersValueMappingMethod.Builder. getSelectionParameters(Method method, TypeUtils typeUtils)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 assignmentprotected 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)BAbstractBaseBuilder. method(Method sourceMethod)CollectionAssignmentBuilderCollectionAssignmentBuilder. method(Method method)NestedTargetPropertyMappingHolder.BuilderNestedTargetPropertyMappingHolder.Builder. method(Method method)ValueMappingMethod.BuilderValueMappingMethod.Builder. method(Method sourceMethod)(package private) voidAbstractBaseBuilder. reportCannotCreateMapping(Method method, java.lang.String sourceErrorMessagePart, Type sourceType, Type targetType, java.lang.String targetPropertyName)Reports that a mapping could not be created.(package private) voidAbstractBaseBuilder. reportCannotCreateMapping(Method method, javax.lang.model.element.AnnotationMirror posHint, java.lang.String sourceErrorMessagePart, Type sourceType, Type targetType, java.lang.String targetPropertyName)Reports that a mapping could not be created.private booleanValueMappingMethod.Builder. reportErrorIfMappedSourceEnumConstantsDontExist(Method method, Type sourceType)private booleanValueMappingMethod.Builder. reportErrorIfMappedTargetEnumConstantsDontExist(Method method, Type targetType)private booleanValueMappingMethod.Builder. reportErrorIfSourceEnumConstantsContainsAnyRemaining(Method method)private voidValueMappingMethod.Builder. reportWarningIfAnyRemainingOrAnyUnMappedMissing(Method method)TPropertyMapping.MappingBuilderBase. sourceMethod(Method sourceMethod)private java.util.List<ValueMappingMethod.MappingEntry>ValueMappingMethod.Builder. stringToEnumMapping(Method method, Type targetType)private static java.util.List<LifecycleCallbackMethodReference>LifecycleMethodResolver. toLifecycleCallbackMethodRefs(Method method, java.util.List<SelectedMethod<SourceMethod>> candidates, MappingBuilderContext ctx, java.util.Set<java.lang.String> existingVariableNames)Constructors in org.mapstruct.ap.internal.model with parameters of type Method Constructor Description BeanMappingMethod(Method method, java.util.Collection<java.lang.String> existingVariableNames, java.util.List<PropertyMapping> propertyMappings, MethodReference factoryMethod, boolean mapNullToDefault, Type returnTypeToConstruct, BuilderType returnTypeBuilder, java.util.List<LifecycleCallbackMethodReference> beforeMappingReferences, java.util.List<LifecycleCallbackMethodReference> afterMappingReferences, MethodReference finalizerMethod, MappingReferences mappingReferences, java.util.List<SubclassMapping> subclassMappings)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)DelegatingMethod(Method method)ForgedMethod(java.lang.String name, Type sourceType, Type returnType, java.util.List<Parameter> additionalParameters, Method basedOn, ForgedMethodHistory history, MappingReferences mappingReferences, boolean forgedNameBased)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)LifecycleCallbackMethodReference(SelectedMethod<SourceMethod> lifecycleMethod, MapperReference mapperReference, Parameter providingParameter, Method containingMethod, java.util.Set<java.lang.String> existingVariableNames)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)MappingMethod(Method method)MappingMethod(Method method, java.util.Collection<java.lang.String> existingVariableNames, java.util.List<LifecycleCallbackMethodReference> beforeMappingReferences, java.util.List<LifecycleCallbackMethodReference> afterMappingReferences)constructor to be overloaded when local variable names are required prior to calling this constructor.MappingMethod(Method method, java.util.List<Parameter> parameters)MappingMethod(Method method, java.util.List<Parameter> parameters, java.util.Collection<java.lang.String> existingVariableNames, java.util.List<LifecycleCallbackMethodReference> beforeMappingReferences, java.util.List<LifecycleCallbackMethodReference> afterMappingReferences)MappingMethod(Method method, java.util.List<LifecycleCallbackMethodReference> beforeMappingReferences, java.util.List<LifecycleCallbackMethodReference> afterMappingReferences)MethodReference(Method method, MapperReference declaringMapper, Parameter providingParameter, java.util.List<ParameterBinding> parameterBindings)Creates a new reference to the given method.NormalTypeMappingMethod(Method method, java.util.Collection<java.lang.String> existingVariableNames, MethodReference factoryMethod, boolean mapNullToDefault, java.util.List<LifecycleCallbackMethodReference> beforeMappingReferences, java.util.List<LifecycleCallbackMethodReference> afterMappingReferences)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)ValueMappingMethod(Method method, java.util.List<ValueMappingMethod.MappingEntry> enumMappings, java.lang.String nullTarget, java.lang.String defaultTarget, Type unexpectedValueMappingException, java.util.List<LifecycleCallbackMethodReference> beforeMappingMethods, java.util.List<LifecycleCallbackMethodReference> afterMappingMethods) -
Uses of Method in org.mapstruct.ap.internal.model.beanmapping
Fields in org.mapstruct.ap.internal.model.beanmapping declared as Method Modifier and Type Field Description private MethodSourceReference.BuilderFromMapping. methodprivate MethodTargetReference.Builder. methodprivate MethodSourceReference.BuilderFromMapping. templateMethodMethods in org.mapstruct.ap.internal.model.beanmapping with parameters of type Method Modifier and Type Method Description SourceReference.BuilderFromMappingSourceReference.BuilderFromMapping. method(Method method)TargetReference.BuilderTargetReference.Builder. method(Method method)java.util.List<SourceReference>SourceReference. push(TypeFactory typeFactory, FormattingMessager messager, Method method) -
Uses of Method in org.mapstruct.ap.internal.model.source
Classes in org.mapstruct.ap.internal.model.source that implement Method Modifier and Type Class Description classSourceMethodRepresents a mapping method with source and target type and the mappings between the properties of source and target type.Fields in org.mapstruct.ap.internal.model.source declared as Method Modifier and Type Field Description private MethodMethodMatcher.GenericAnalyser. candidateMethodprivate MethodMappingOptions.InheritContext. templateMethodMethods in org.mapstruct.ap.internal.model.source that return Method Modifier and Type Method Description MethodMappingOptions.InheritContext. getTemplateMethod()Methods in org.mapstruct.ap.internal.model.source with parameters of type Method Modifier and Type Method Description ParameterParameterProvidedMethods. getParameterForProvidedMethod(Method method)static booleanMappingMethodUtils. isEnumMapping(Method method)Checks if the providedmethodis for enum mapping.Constructors in org.mapstruct.ap.internal.model.source with parameters of type Method Constructor Description GenericAnalyser(TypeFactory typeFactory, TypeUtils typeUtils, Method candidateMethod, java.util.List<Type> sourceTypes, Type targetType)InheritContext(boolean isReversed, boolean isForwarded, Method templateMethod) -
Uses of Method in org.mapstruct.ap.internal.model.source.builtin
-
Uses of Method in org.mapstruct.ap.internal.model.source.selector
Classes in org.mapstruct.ap.internal.model.source.selector with type parameters of type Method Modifier and Type Class Description classSelectedMethod<T extends Method>A selected method with additional metadata that might be required for further usage of the selected method.Fields in org.mapstruct.ap.internal.model.source.selector declared as Method Modifier and Type Field Description private TSelectedMethod. methodMethods in org.mapstruct.ap.internal.model.source.selector with type parameters of type Method Modifier and Type Method Description private <T extends Method>
intInheritanceSelector. addToCandidateListIfMinimal(java.util.List<SelectedMethod<T>> candidatesWithBestMathingType, int bestMatchingTypeDistance, SelectedMethod<T> method, int currentTypeDistance)<T extends Method>
java.util.List<SelectedMethod<T>>CreateOrUpdateSelector. getMatchingMethods(Method mappingMethod, java.util.List<SelectedMethod<T>> methods, java.util.List<Type> sourceTypes, Type mappingTargetType, Type returnType, SelectionCriteria criteria)<T extends Method>
java.util.List<SelectedMethod<T>>FactoryParameterSelector. getMatchingMethods(Method mappingMethod, java.util.List<SelectedMethod<T>> methods, java.util.List<Type> sourceTypes, Type mappingTargetType, Type returnType, SelectionCriteria criteria)<T extends Method>
java.util.List<SelectedMethod<T>>InheritanceSelector. getMatchingMethods(Method mappingMethod, java.util.List<SelectedMethod<T>> methods, java.util.List<Type> sourceTypes, Type mappingTargetType, Type returnType, SelectionCriteria criteria)<T extends Method>
java.util.List<SelectedMethod<T>>MethodFamilySelector. getMatchingMethods(Method mappingMethod, java.util.List<SelectedMethod<T>> methods, java.util.List<Type> sourceTypes, Type mappingTargetType, Type returnType, SelectionCriteria criteria)<T extends Method>
java.util.List<SelectedMethod<T>>MethodSelector. getMatchingMethods(Method mappingMethod, java.util.List<SelectedMethod<T>> candidates, java.util.List<Type> sourceTypes, Type mappingTargetType, Type returnType, SelectionCriteria criteria)Selects those methods which match the given types and other criteria<T extends Method>
java.util.List<SelectedMethod<T>>MethodSelectors. getMatchingMethods(Method mappingMethod, java.util.List<T> methods, java.util.List<Type> sourceTypes, Type mappingTargetType, Type returnType, SelectionCriteria criteria)Selects those methods which match the given types and other criteria<T extends Method>
java.util.List<SelectedMethod<T>>QualifierSelector. getMatchingMethods(Method mappingMethod, java.util.List<SelectedMethod<T>> methods, java.util.List<Type> sourceTypes, Type mappingTargetType, Type returnType, SelectionCriteria criteria)<T extends Method>
java.util.List<SelectedMethod<T>>SourceRhsSelector. getMatchingMethods(Method mappingMethod, java.util.List<SelectedMethod<T>> candidates, java.util.List<Type> sourceTypes, Type mappingTargetType, Type returnType, SelectionCriteria criteria)<T extends Method>
java.util.List<SelectedMethod<T>>TargetTypeSelector. getMatchingMethods(Method mappingMethod, java.util.List<SelectedMethod<T>> methods, java.util.List<Type> sourceTypes, Type mappingTargetType, Type returnType, SelectionCriteria criteria)<T extends Method>
java.util.List<SelectedMethod<T>>TypeSelector. getMatchingMethods(Method mappingMethod, java.util.List<SelectedMethod<T>> methods, java.util.List<Type> sourceTypes, Type mappingTargetType, Type returnType, SelectionCriteria criteria)<T extends Method>
java.util.List<SelectedMethod<T>>XmlElementDeclSelector. getMatchingMethods(Method mappingMethod, java.util.List<SelectedMethod<T>> methods, java.util.List<Type> sourceTypes, Type mappingTargetType, Type returnType, SelectionCriteria criteria)private <T extends Method>
SelectedMethod<T>TypeSelector. getMatchingParameterBinding(Type returnType, Method mappingMethod, SelectedMethod<T> selectedMethodInfo, java.util.List<java.util.List<ParameterBinding>> parameterAssignmentVariants)Methods in org.mapstruct.ap.internal.model.source.selector with parameters of type Method Modifier and Type Method Description private java.util.List<ParameterBinding>TypeSelector. getAvailableParameterBindingsFromMethod(Method method, Type targetType, SourceRHS sourceRHS)private java.util.List<ParameterBinding>TypeSelector. getAvailableParameterBindingsFromSourceTypes(java.util.List<Type> sourceTypes, Type targetType, Method mappingMethod)<T extends Method>
java.util.List<SelectedMethod<T>>CreateOrUpdateSelector. getMatchingMethods(Method mappingMethod, java.util.List<SelectedMethod<T>> methods, java.util.List<Type> sourceTypes, Type mappingTargetType, Type returnType, SelectionCriteria criteria)<T extends Method>
java.util.List<SelectedMethod<T>>FactoryParameterSelector. getMatchingMethods(Method mappingMethod, java.util.List<SelectedMethod<T>> methods, java.util.List<Type> sourceTypes, Type mappingTargetType, Type returnType, SelectionCriteria criteria)<T extends Method>
java.util.List<SelectedMethod<T>>InheritanceSelector. getMatchingMethods(Method mappingMethod, java.util.List<SelectedMethod<T>> methods, java.util.List<Type> sourceTypes, Type mappingTargetType, Type returnType, SelectionCriteria criteria)<T extends Method>
java.util.List<SelectedMethod<T>>MethodFamilySelector. getMatchingMethods(Method mappingMethod, java.util.List<SelectedMethod<T>> methods, java.util.List<Type> sourceTypes, Type mappingTargetType, Type returnType, SelectionCriteria criteria)<T extends Method>
java.util.List<SelectedMethod<T>>MethodSelector. getMatchingMethods(Method mappingMethod, java.util.List<SelectedMethod<T>> candidates, java.util.List<Type> sourceTypes, Type mappingTargetType, Type returnType, SelectionCriteria criteria)Selects those methods which match the given types and other criteria<T extends Method>
java.util.List<SelectedMethod<T>>MethodSelectors. getMatchingMethods(Method mappingMethod, java.util.List<T> methods, java.util.List<Type> sourceTypes, Type mappingTargetType, Type returnType, SelectionCriteria criteria)Selects those methods which match the given types and other criteria<T extends Method>
java.util.List<SelectedMethod<T>>QualifierSelector. getMatchingMethods(Method mappingMethod, java.util.List<SelectedMethod<T>> methods, java.util.List<Type> sourceTypes, Type mappingTargetType, Type returnType, SelectionCriteria criteria)<T extends Method>
java.util.List<SelectedMethod<T>>SourceRhsSelector. getMatchingMethods(Method mappingMethod, java.util.List<SelectedMethod<T>> candidates, java.util.List<Type> sourceTypes, Type mappingTargetType, Type returnType, SelectionCriteria criteria)<T extends Method>
java.util.List<SelectedMethod<T>>TargetTypeSelector. getMatchingMethods(Method mappingMethod, java.util.List<SelectedMethod<T>> methods, java.util.List<Type> sourceTypes, Type mappingTargetType, Type returnType, SelectionCriteria criteria)<T extends Method>
java.util.List<SelectedMethod<T>>TypeSelector. getMatchingMethods(Method mappingMethod, java.util.List<SelectedMethod<T>> methods, java.util.List<Type> sourceTypes, Type mappingTargetType, Type returnType, SelectionCriteria criteria)<T extends Method>
java.util.List<SelectedMethod<T>>XmlElementDeclSelector. getMatchingMethods(Method mappingMethod, java.util.List<SelectedMethod<T>> methods, java.util.List<Type> sourceTypes, Type mappingTargetType, Type returnType, SelectionCriteria criteria)private <T extends Method>
SelectedMethod<T>TypeSelector. getMatchingParameterBinding(Type returnType, Method mappingMethod, SelectedMethod<T> selectedMethodInfo, java.util.List<java.util.List<ParameterBinding>> parameterAssignmentVariants)private java.util.Set<javax.lang.model.element.AnnotationMirror>QualifierSelector. getQualifierAnnotationMirrors(Method candidate) -
Uses of Method in org.mapstruct.ap.internal.processor
Methods in org.mapstruct.ap.internal.processor with parameters of type Method Modifier and Type Method Description private voidMapperCreationProcessor. reportErrorIfNoImplementationTypeIsRegisteredForInterfaceReturnType(Method method) -
Uses of Method in org.mapstruct.ap.internal.processor.creation
Classes in org.mapstruct.ap.internal.processor.creation with type parameters of type Method Modifier and Type Class Description private static classMappingResolverImpl.ConversionMethod<T extends Method>Suppose mapping required from A to C and: there is a conversion from A to B, conversionX there is a method from B to C, methodY then this method tries to resolve this combination and make a mapping methodY( conversionX ( parameter ) ) Instead of directly using a built in method candidate, all the return types as 'B' of all available built-in methods are used to resolve a mapping (assignment) from result type to 'B'.private static classMappingResolverImpl.MethodConversion<T extends Method>Suppose mapping required from A to C and: there is a method from A to B, methodX there is a conversion from B to C, conversionY then this method tries to resolve this combination and make a mapping conversionY( methodX ( parameter ) ) Instead of directly using a built in method candidate, all the return types as 'B' of all available built-in methods are used to resolve a mapping (assignment) from source type to 'B'.private static classMappingResolverImpl.MethodMethod<T1 extends Method,T2 extends Method>Suppose mapping required from A to C and: no direct referenced mapping method either built-in or referenced is available from A to C no conversion is available there is a method from A to B, methodX there is a method from B to C, methodY then this method tries to resolve this combination and make a mapping methodY( methodX ( parameter ) ) NOTE method X cannot be an update methodprivate static classMappingResolverImpl.MethodMethod<T1 extends Method,T2 extends Method>Suppose mapping required from A to C and: no direct referenced mapping method either built-in or referenced is available from A to C no conversion is available there is a method from A to B, methodX there is a method from B to C, methodY then this method tries to resolve this combination and make a mapping methodY( methodX ( parameter ) ) NOTE method X cannot be an update methodFields in org.mapstruct.ap.internal.processor.creation declared as Method Modifier and Type Field Description private MethodMappingResolverImpl.ResolvingAttempt. mappingMethodFields in org.mapstruct.ap.internal.processor.creation with type parameters of type Method Modifier and Type Field Description private java.util.List<Method>MappingResolverImpl.ResolvingAttempt. methodsprivate java.util.List<Method>MappingResolverImpl. sourceModelMethods in org.mapstruct.ap.internal.processor.creation with type parameters of type Method Modifier and Type Method Description private <T extends Method>
java.util.List<T>MappingResolverImpl.ResolvingAttempt. filterPossibleCandidateMethods(java.util.List<T> candidateMethods, T mappingMethod)private <T extends Method>
java.util.List<SelectedMethod<T>>MappingResolverImpl.ResolvingAttempt. getBestMatch(java.util.List<T> methods, Type source, Type target)private <T extends Method>
booleanMappingResolverImpl.ResolvingAttempt. isNotSelfOrSelfAllowed(T mappingMethod, T candidate)private <T extends Method>
java.lang.StringMappingResolverImpl.ResolvingAttempt. join(java.util.List<SelectedMethod<T>> candidates)private <T extends Method>
voidMappingResolverImpl.ResolvingAttempt. reportErrorWhenAmbiguous(java.util.List<SelectedMethod<T>> candidates, Type target)Methods in org.mapstruct.ap.internal.processor.creation with parameters of type Method Modifier and Type Method Description private MapperReferenceMappingResolverImpl. findMapperReference(Method method)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 booleanMappingResolverImpl.ResolvingAttempt. isCandidateForMapping(Method methodCandidate)private booleanMappingResolverImpl.ResolvingAttempt. isCreateMethodForMapping(Method methodCandidate)private booleanMappingResolverImpl.ResolvingAttempt. isUpdateMethodForMapping(Method methodCandidate)Method parameters in org.mapstruct.ap.internal.processor.creation with type arguments of type Method Modifier and Type Method Description private AssignmentMappingResolverImpl.ResolvingAttempt. toMethodRef(SelectedMethod<Method> selectedMethod)Constructors in org.mapstruct.ap.internal.processor.creation with parameters of type Method Constructor Description 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)Constructor parameters in org.mapstruct.ap.internal.processor.creation with type arguments of type Method Constructor Description MappingResolverImpl(FormattingMessager messager, ElementUtils elementUtils, TypeUtils typeUtils, TypeFactory typeFactory, java.util.List<Method> sourceModel, java.util.List<MapperReference> mapperReferences, boolean verboseLogging)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)
-