Uses of Class
org.mapstruct.ap.internal.model.source.SourceMethod
-
Packages that use SourceMethod Package Description 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.processor Contains model processors which perform tasks such as retrieving mapping methods, creating a model representation and writing the model into Java source files. -
-
Uses of SourceMethod in org.mapstruct.ap.internal.model
Fields in org.mapstruct.ap.internal.model with type parameters of type SourceMethod Modifier and Type Field Description private java.util.List<SourceMethod>MappingBuilderContext. sourceModelMethods in org.mapstruct.ap.internal.model that return types with arguments of type SourceMethod Modifier and Type Method Description private static java.util.List<SourceMethod>LifecycleMethodResolver. filterAfterMappingMethods(java.util.List<SourceMethod> methods)private static java.util.List<SourceMethod>LifecycleMethodResolver. filterBeforeMappingMethods(java.util.List<SourceMethod> methods)private static SelectedMethod<SourceMethod>PresenceCheckMethodResolver. findMatchingPresenceCheckMethod(Method method, SelectionParameters selectionParameters, MappingBuilderContext ctx)private 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 java.util.List<SelectedMethod<SourceMethod>>ObjectFactoryMethodResolver. getMatchingFactoryMethods(Method method, Type alternativeTarget, SelectionParameters selectionParameters, MappingBuilderContext ctx)java.util.List<SourceMethod>MappingBuilderContext. getSourceModel()Methods in org.mapstruct.ap.internal.model with parameters of type SourceMethod Modifier and Type Method Description static MapperReferenceMapperReference. findMapperReference(java.util.List<MapperReference> mapperReferences, SourceMethod method)BeanMappingMethod.BuilderBeanMappingMethod.Builder. sourceMethod(SourceMethod sourceMethod)Method parameters in org.mapstruct.ap.internal.model with type arguments of type SourceMethod Modifier and Type Method Description 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)private static java.util.List<SourceMethod>LifecycleMethodResolver. filterAfterMappingMethods(java.util.List<SourceMethod> methods)private static java.util.List<SourceMethod>LifecycleMethodResolver. filterBeforeMappingMethods(java.util.List<SourceMethod> methods)static LifecycleCallbackMethodReferenceLifecycleCallbackMethodReference. forMethodReference(SelectedMethod<SourceMethod> lifecycleMethod, MapperReference mapperReference, Method containingMethod, java.util.Set<java.lang.String> existingVariableNames)static LifecycleCallbackMethodReferenceLifecycleCallbackMethodReference. forParameterProvidedMethod(SelectedMethod<SourceMethod> lifecycleMethod, Parameter providingParameter, Method containingMethod, java.util.Set<java.lang.String> existingVariableNames)private 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. getFactoryMethodReference(Method method, SelectedMethod<SourceMethod> matchingFactoryMethod, MappingBuilderContext ctx)private static MethodReferencePresenceCheckMethodResolver. getPresenceCheckMethodReference(Method method, SelectedMethod<SourceMethod> matchingMethod, MappingBuilderContext ctx)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)Constructor parameters in org.mapstruct.ap.internal.model with type arguments of type SourceMethod Constructor Description LifecycleCallbackMethodReference(SelectedMethod<SourceMethod> lifecycleMethod, MapperReference mapperReference, Parameter providingParameter, Method containingMethod, java.util.Set<java.lang.String> existingVariableNames)MappingBuilderContext(TypeFactory typeFactory, ElementUtils elementUtils, TypeUtils typeUtils, FormattingMessager messager, AccessorNamingUtils accessorNaming, EnumMappingStrategy enumMappingStrategy, java.util.Map<java.lang.String,EnumTransformationStrategy> enumTransformationStrategies, Options options, MappingBuilderContext.MappingResolver mappingResolver, javax.lang.model.element.TypeElement mapper, java.util.List<SourceMethod> sourceModel, java.util.List<MapperReference> mapperReferences) -
Uses of SourceMethod in org.mapstruct.ap.internal.model.beanmapping
Methods in org.mapstruct.ap.internal.model.beanmapping with parameters of type SourceMethod Modifier and Type Method Description static MappingReferencesMappingReferences. forSourceMethod(SourceMethod sourceMethod, Type targetType, java.util.Set<java.lang.String> targetProperties, FormattingMessager messager, TypeFactory typeFactory) -
Uses of SourceMethod in org.mapstruct.ap.internal.model.source
Fields in org.mapstruct.ap.internal.model.source declared as SourceMethod Modifier and Type Field Description private SourceMethodMethodMatcher. candidateMethodFields in org.mapstruct.ap.internal.model.source with type parameters of type SourceMethod Modifier and Type Field Description private java.util.List<SourceMethod>SourceMethod. applicablePrototypeMethodsprivate java.util.List<SourceMethod>SourceMethod. applicableReversePrototypeMethodsprivate java.util.Map<Parameter,java.util.List<SourceMethod>>ParameterProvidedMethods.Builder. contextProvidedMethodsprivate java.util.Map<SourceMethod,Parameter>ParameterProvidedMethods. methodToProvidingParameterprivate java.util.Map<Parameter,java.util.List<SourceMethod>>ParameterProvidedMethods. parameterToProvidedMethodsprivate java.util.List<SourceMethod>SourceMethod.Builder. prototypeMethodsprivate java.util.List<SourceMethod>SourceMethod. prototypeMethodsMethods in org.mapstruct.ap.internal.model.source that return SourceMethod Modifier and Type Method Description SourceMethodSourceMethod.Builder. build()Methods in org.mapstruct.ap.internal.model.source that return types with arguments of type SourceMethod Modifier and Type Method Description java.util.List<SourceMethod>ParameterProvidedMethods. getAllProvidedMethodsInParameterOrder(java.util.List<Parameter> orderedParameters)java.util.List<SourceMethod>SourceMethod. getApplicablePrototypeMethods()java.util.List<SourceMethod>SourceMethod. getApplicableReversePrototypeMethods()Methods in org.mapstruct.ap.internal.model.source with parameters of type SourceMethod Modifier and Type Method Description private voidMappingMethodOptions. addAllNonRedefined(SourceMethod sourceMethod, javax.lang.model.element.AnnotationMirror annotationMirror, java.util.List<SubclassMappingOptions> inheritedMappings)voidMappingMethodOptions. applyIgnoreAll(SourceMethod method, TypeFactory typeFactory, FormattingMessager messager)voidMappingMethodOptions. applyInheritedOptions(SourceMethod sourceMethod, SourceMethod templateMethod, boolean isInverse, javax.lang.model.element.AnnotationMirror annotationMirror)Merges in all the mapping options configured, giving the already defined options precedence.booleanSourceMethod. canInheritFrom(SourceMethod method)MappingOptionsMappingOptions. copyForForwardInheritance(SourceMethod templateMethod, BeanMappingOptions beanMappingOptions)Creates a copy of this mappingMappingOptionsMappingOptions. copyForInverseInheritance(SourceMethod templateMethod, BeanMappingOptions beanMappingOptions)booleanSourceMethod. inverses(SourceMethod method)Method parameters in org.mapstruct.ap.internal.model.source with type arguments of type SourceMethod Modifier and Type Method Description voidParameterProvidedMethods.Builder. addMethodsForParameter(Parameter param, java.util.List<SourceMethod> methods)SourceMethod.BuilderSourceMethod.Builder. setPrototypeMethods(java.util.List<SourceMethod> prototypeMethods)Constructors in org.mapstruct.ap.internal.model.source with parameters of type SourceMethod Constructor Description MethodMatcher(TypeUtils typeUtils, TypeFactory typeFactory, SourceMethod candidateMethod)Constructor parameters in org.mapstruct.ap.internal.model.source with type arguments of type SourceMethod Constructor Description ParameterProvidedMethods(java.util.Map<Parameter,java.util.List<SourceMethod>> parameterToProvidedMethods) -
Uses of SourceMethod in org.mapstruct.ap.internal.processor
Methods in org.mapstruct.ap.internal.processor that return SourceMethod Modifier and Type Method Description private SourceMethodMapperCreationProcessor. extractInitializedOptions(SourceMethod resultMethod, java.util.List<SourceMethod> rawMethods, MapperOptions mapperConfig, java.util.List<SourceMethod> initializingMethods, javax.lang.model.element.AnnotationMirror annotationMirror)private SourceMethodMapperCreationProcessor. getForwardTemplateMethod(java.util.List<SourceMethod> rawMethods, SourceMethod method, java.util.List<SourceMethod> initializingMethods, MapperOptions mapperConfig)Returns the configuring forward method's options in case the given method is annotated with@InheritConfigurationand exactly one such configuring method can unambiguously be selected (as per the source/target type and optionally the name given via@InheritConfiguration).private SourceMethodMapperCreationProcessor. getInverseTemplateMethod(java.util.List<SourceMethod> rawMethods, SourceMethod method, java.util.List<SourceMethod> initializingMethods, MapperOptions mapperConfig)Returns the configuring inverse method's options in case the given method is annotated with@InheritInverseConfigurationand exactly one such configuring method can unambiguously be selected (as per the source/target type and optionally the name given via@InheritInverseConfiguration).private SourceMethodMethodRetrievalProcessor. getMethod(javax.lang.model.element.TypeElement usedMapper, javax.lang.model.element.ExecutableElement method, javax.lang.model.element.TypeElement mapperToImplement, MapperOptions mapperOptions, java.util.List<SourceMethod> prototypeMethods)private SourceMethodMethodRetrievalProcessor. getMethodRequiringImplementation(javax.lang.model.type.ExecutableType methodType, javax.lang.model.element.ExecutableElement method, java.util.List<Parameter> parameters, boolean containsTargetTypeParameter, MapperOptions mapperOptions, java.util.List<SourceMethod> prototypeMethods, javax.lang.model.element.TypeElement mapperToImplement)private SourceMethodMethodRetrievalProcessor. getReferencedMethod(javax.lang.model.element.TypeElement usedMapper, javax.lang.model.type.ExecutableType methodType, javax.lang.model.element.ExecutableElement method, javax.lang.model.element.TypeElement mapperToImplement, java.util.List<Parameter> parameters)Methods in org.mapstruct.ap.internal.processor that return types with arguments of type SourceMethod Modifier and Type Method Description java.util.List<SourceMethod>MethodRetrievalProcessor. process(ModelElementProcessor.ProcessorContext context, javax.lang.model.element.TypeElement mapperTypeElement, java.lang.Void sourceModel)private java.util.List<SourceMethod>MethodRetrievalProcessor. retrieveMethods(javax.lang.model.element.TypeElement usedMapper, javax.lang.model.element.TypeElement mapperToImplement, MapperOptions mapperOptions, java.util.List<SourceMethod> prototypeMethods)Retrieves the mapping methods declared by the given mapper type.private java.util.List<SourceMethod>MethodRetrievalProcessor. retrievePrototypeMethods(javax.lang.model.element.TypeElement mapperTypeElement, MapperOptions mapperAnnotation)Methods in org.mapstruct.ap.internal.processor with parameters of type SourceMethod Modifier and Type Method Description private <M extends ContainerMappingMethod>
MMapperCreationProcessor. createWithElementMappingMethod(SourceMethod method, MappingMethodOptions mappingMethodOptions, ContainerMappingMethodBuilder<?,M> builder)private SourceMethodMapperCreationProcessor. extractInitializedOptions(SourceMethod resultMethod, java.util.List<SourceMethod> rawMethods, MapperOptions mapperConfig, java.util.List<SourceMethod> initializingMethods, javax.lang.model.element.AnnotationMirror annotationMirror)private SourceMethodMapperCreationProcessor. getForwardTemplateMethod(java.util.List<SourceMethod> rawMethods, SourceMethod method, java.util.List<SourceMethod> initializingMethods, MapperOptions mapperConfig)Returns the configuring forward method's options in case the given method is annotated with@InheritConfigurationand exactly one such configuring method can unambiguously be selected (as per the source/target type and optionally the name given via@InheritConfiguration).private SourceMethodMapperCreationProcessor. getInverseTemplateMethod(java.util.List<SourceMethod> rawMethods, SourceMethod method, java.util.List<SourceMethod> initializingMethods, MapperOptions mapperConfig)Returns the configuring inverse method's options in case the given method is annotated with@InheritInverseConfigurationand exactly one such configuring method can unambiguously be selected (as per the source/target type and optionally the name given via@InheritInverseConfiguration).private TypeMapperCreationProcessor. getUserDesiredReturnType(SourceMethod method)private voidMapperCreationProcessor. mergeInheritedOptions(SourceMethod method, MapperOptions mapperConfig, java.util.List<SourceMethod> availableMethods, java.util.List<SourceMethod> initializingMethods, javax.lang.model.element.AnnotationMirror annotationMirror)private voidMapperCreationProcessor. reportErrorWhenAmbigousMapping(java.util.List<SourceMethod> candidates, SourceMethod method, InheritConfigurationGem gem)private voidMapperCreationProcessor. reportErrorWhenAmbigousReverseMapping(java.util.List<SourceMethod> candidates, SourceMethod method, InheritInverseConfigurationGem inverseGem)private voidMapperCreationProcessor. reportErrorWhenNonMatchingName(SourceMethod onlyCandidate, SourceMethod method, InheritConfigurationGem gem)private voidMapperCreationProcessor. reportErrorWhenNonMatchingName(SourceMethod onlyCandidate, SourceMethod method, InheritInverseConfigurationGem inverseGem)private voidMapperCreationProcessor. reportErrorWhenSeveralNamesMatch(java.util.List<SourceMethod> candidates, SourceMethod method, InheritConfigurationGem gem)private voidMapperCreationProcessor. reportErrorWhenSeveralNamesMatch(java.util.List<SourceMethod> candidates, SourceMethod method, InheritInverseConfigurationGem inverseGem)Method parameters in org.mapstruct.ap.internal.processor with type arguments of type SourceMethod Modifier and Type Method Description private SourceMethodMapperCreationProcessor. extractInitializedOptions(SourceMethod resultMethod, java.util.List<SourceMethod> rawMethods, MapperOptions mapperConfig, java.util.List<SourceMethod> initializingMethods, javax.lang.model.element.AnnotationMirror annotationMirror)private DecoratorMapperCreationProcessor. getDecorator(javax.lang.model.element.TypeElement element, java.util.List<SourceMethod> methods, MapperOptions mapperOptions)private SourceMethodMapperCreationProcessor. getForwardTemplateMethod(java.util.List<SourceMethod> rawMethods, SourceMethod method, java.util.List<SourceMethod> initializingMethods, MapperOptions mapperConfig)Returns the configuring forward method's options in case the given method is annotated with@InheritConfigurationand exactly one such configuring method can unambiguously be selected (as per the source/target type and optionally the name given via@InheritConfiguration).private SourceMethodMapperCreationProcessor. getInverseTemplateMethod(java.util.List<SourceMethod> rawMethods, SourceMethod method, java.util.List<SourceMethod> initializingMethods, MapperOptions mapperConfig)Returns the configuring inverse method's options in case the given method is annotated with@InheritInverseConfigurationand exactly one such configuring method can unambiguously be selected (as per the source/target type and optionally the name given via@InheritInverseConfiguration).private MapperMapperCreationProcessor. getMapper(javax.lang.model.element.TypeElement element, MapperOptions mapperOptions, java.util.List<SourceMethod> methods)private java.util.List<MappingMethod>MapperCreationProcessor. getMappingMethods(MapperOptions mapperAnnotation, java.util.List<SourceMethod> methods)private SourceMethodMethodRetrievalProcessor. getMethod(javax.lang.model.element.TypeElement usedMapper, javax.lang.model.element.ExecutableElement method, javax.lang.model.element.TypeElement mapperToImplement, MapperOptions mapperOptions, java.util.List<SourceMethod> prototypeMethods)private voidMapperCreationProcessor. mergeInheritedOptions(SourceMethod method, MapperOptions mapperConfig, java.util.List<SourceMethod> availableMethods, java.util.List<SourceMethod> initializingMethods, javax.lang.model.element.AnnotationMirror annotationMirror)MapperMapperCreationProcessor. process(ModelElementProcessor.ProcessorContext context, javax.lang.model.element.TypeElement mapperTypeElement, java.util.List<SourceMethod> sourceModel)private voidMapperCreationProcessor. reportErrorWhenAmbigousMapping(java.util.List<SourceMethod> candidates, SourceMethod method, InheritConfigurationGem gem)private voidMapperCreationProcessor. reportErrorWhenAmbigousReverseMapping(java.util.List<SourceMethod> candidates, SourceMethod method, InheritInverseConfigurationGem inverseGem)private voidMapperCreationProcessor. reportErrorWhenSeveralNamesMatch(java.util.List<SourceMethod> candidates, SourceMethod method, InheritConfigurationGem gem)private voidMapperCreationProcessor. reportErrorWhenSeveralNamesMatch(java.util.List<SourceMethod> candidates, SourceMethod method, InheritInverseConfigurationGem inverseGem)private java.util.List<SourceMethod>MethodRetrievalProcessor. retrieveMethods(javax.lang.model.element.TypeElement usedMapper, javax.lang.model.element.TypeElement mapperToImplement, MapperOptions mapperOptions, java.util.List<SourceMethod> prototypeMethods)Retrieves the mapping methods declared by the given mapper type.
-