Uses of Interface
org.mapstruct.ap.internal.model.source.Method
Packages that use Method
Package
Description
Provides built-in conversions between primitive and wrapper types, strings, dates etc.
Meta-model of mapper types, their methods, mappings between properties etc.
helper classes used in
BeanMappingMethod
Intermediary representation of mapping methods as retrieved from via the annotation processing API.
Contains "built-in methods" which may be added as private methods to a generated mapper.
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.
Contains all helper classes for the
MapperCreationProcessor-
Uses of Method in org.mapstruct.ap.internal.conversion
Classes in org.mapstruct.ap.internal.conversion that implement MethodModifier and TypeClassDescriptionclassHelperMethod 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 MethodModifier and TypeClassDescriptionclassThis method will be generated in absence of a suitable abstract method to implement.classA non mapping method to be generated.Fields in org.mapstruct.ap.internal.model declared as MethodModifier and TypeFieldDescriptionprotected MethodAbstractBaseBuilder.methodprotected MethodAbstractBaseBuilder.methodprotected MethodAbstractBaseBuilder.methodprotected MethodAbstractBaseBuilder.methodprotected MethodAbstractBaseBuilder.methodprotected MethodAbstractBaseBuilder.methodprotected MethodAbstractBaseBuilder.methodprotected MethodAbstractBaseBuilder.methodprotected MethodAbstractBaseBuilder.methodMethods in org.mapstruct.ap.internal.model with parameters of type MethodModifier and TypeMethodDescriptionstatic List<LifecycleCallbackMethodReference> LifecycleMethodResolver.afterMappingMethods(Method method, Type alternativeTarget, SelectionParameters selectionParameters, MappingBuilderContext ctx, Set<String> existingVariableNames, Supplier<List<ParameterBinding>> parameterBindingsProvider) static List<LifecycleCallbackMethodReference> LifecycleMethodResolver.afterMappingMethods(Method method, SelectionParameters selectionParameters, MappingBuilderContext ctx, Set<String> existingVariableNames) static List<LifecycleCallbackMethodReference> LifecycleMethodResolver.beforeMappingMethods(Method method, Type alternativeTarget, SelectionParameters selectionParameters, MappingBuilderContext ctx, Set<String> existingVariableNames) static List<LifecycleCallbackMethodReference> LifecycleMethodResolver.beforeMappingMethods(Method method, SelectionParameters selectionParameters, MappingBuilderContext ctx, Set<String> existingVariableNames) static ForgedMethodForgedMethod.forElementMapping(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, List<ParameterBinding> parameterBindings) static MethodReferenceMethodReference.forMapperReference(Method method, MapperReference declaringMapper, List<ParameterBinding> parameterBindings) LifecycleCallbackMethodReference.forMethodReference(SelectedMethod<SourceMethod> lifecycleMethod, MapperReference mapperReference, Method containingMethod, Set<String> existingVariableNames) static ForgedMethodForgedMethod.forParameterMapping(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.LifecycleCallbackMethodReference.forParameterProvidedMethod(SelectedMethod<SourceMethod> lifecycleMethod, Parameter providingParameter, Method containingMethod, Set<String> existingVariableNames) static MethodReferenceMethodReference.forParameterProvidedMethod(Method method, Parameter providingParameter, List<ParameterBinding> parameterBindings) static ForgedMethodForgedMethod.forPropertyMapping(String name, Type sourceType, Type returnType, 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(String name, Type sourceType, Type returnType, Method basedOn, MappingReferences mappingReferences, ForgedMethodHistory history, boolean forgedNameBased) Creates a new forged method for mapping a SubclassMapping elementstatic 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 List<SelectedMethod<SourceMethod>> ObjectFactoryMethodResolver.getMatchingFactoryMethods(Method method, Type alternativeTarget, SelectionParameters selectionParameters, MappingBuilderContext ctx) static PresenceCheckPresenceCheckMethodResolver.getPresenceCheck(Method method, SelectionParameters selectionParameters, MappingBuilderContext ctx) static PresenceCheckPresenceCheckMethodResolver.getPresenceCheckForSourceParameter(Method method, SelectionParameters selectionParameters, Parameter sourceParameter, MappingBuilderContext ctx) MappingBuilderContext.MappingResolver.getTargetAssignment(Method mappingMethod, ForgedMethodHistory description, Type targetType, FormattingParameters formattingParameters, SelectionCriteria criteria, SourceRHS sourceRHS, AnnotationMirror positionHint, 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, Collection<String> existingVariables, Assignment assignment, MethodReference factoryMethod, boolean mapNullToDefault, String loopVariableName, List<LifecycleCallbackMethodReference> beforeMappingMethods, List<LifecycleCallbackMethodReference> afterMappingMethods, SelectionParameters selectionParameters) protected IterableMappingMethodIterableMappingMethod.Builder.instantiateMappingMethod(Method method, Collection<String> existingVariables, Assignment assignment, MethodReference factoryMethod, boolean mapNullToDefault, String loopVariableName, List<LifecycleCallbackMethodReference> beforeMappingMethods, List<LifecycleCallbackMethodReference> afterMappingMethods, SelectionParameters selectionParameters) protected StreamMappingMethodStreamMappingMethod.Builder.instantiateMappingMethod(Method method, Collection<String> existingVariables, Assignment assignment, MethodReference factoryMethod, boolean mapNullToDefault, String loopVariableName, List<LifecycleCallbackMethodReference> beforeMappingMethods, List<LifecycleCallbackMethodReference> afterMappingMethods, SelectionParameters selectionParameters) Constructors in org.mapstruct.ap.internal.model with parameters of type MethodModifierConstructorDescriptionDelegatingMethod(Method method) protectedMappingMethod(Method method) protectedMappingMethod(Method method, Collection<String> existingVariableNames, List<LifecycleCallbackMethodReference> beforeMappingReferences, List<LifecycleCallbackMethodReference> afterMappingReferences) constructor to be overloaded when local variable names are required prior to calling this constructor.protectedMappingMethod(Method method, List<Parameter> parameters) protectedMappingMethod(Method method, List<Parameter> parameters, Collection<String> existingVariableNames, List<LifecycleCallbackMethodReference> beforeMappingReferences, List<LifecycleCallbackMethodReference> afterMappingReferences) protectedMappingMethod(Method method, List<LifecycleCallbackMethodReference> beforeMappingReferences, List<LifecycleCallbackMethodReference> afterMappingReferences) protectedMethodReference(Method method, MapperReference declaringMapper, Parameter providingParameter, List<ParameterBinding> parameterBindings) Creates a new reference to the given method. -
Uses of Method in org.mapstruct.ap.internal.model.beanmapping
Methods in org.mapstruct.ap.internal.model.beanmapping with parameters of type MethodModifier and TypeMethodDescriptionSourceReference.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 MethodModifier and TypeClassDescriptionclassRepresents a mapping method with source and target type and the mappings between the properties of source and target type.Methods in org.mapstruct.ap.internal.model.source that return MethodMethods in org.mapstruct.ap.internal.model.source with parameters of type MethodModifier and TypeMethodDescriptionParameterProvidedMethods.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 MethodModifierConstructorDescriptionInheritContext(boolean isReversed, boolean isForwarded, Method templateMethod) -
Uses of Method in org.mapstruct.ap.internal.model.source.builtin
Classes in org.mapstruct.ap.internal.model.source.builtin that implement MethodModifier and TypeClassDescriptionclassBase class for built-in methods for converting from a particular type toXMLGregorianCalendar.classRepresents a "built-in" mapping method which will be added as private method to the generated mapper.classA built-in method for converting fromCalendartoXMLGregorianCalendar.classclassA built-in method for converting fromDatetoXMLGregorianCalendar.classA built-in method for converting from JodaDateTimetoXMLGregorianCalendar.classA built-in method for converting from JodaLocalDateTimetoXMLGregorianCalendar.classA built-in method for converting from JodaLocalDatetoXMLGregorianCalendar.classA built-in method for converting from JodaLocalTimetoXMLGregorianCalendar.classA built-in method for converting fromLocalDateTimetoXMLGregorianCalendar.classA built-in method for converting fromLocalDatetoXMLGregorianCalendar.classA built-in method for converting fromStringtoXMLGregorianCalendar.classA built-in method for converting fromXMLGregorianCalendartoCalendar.classA built-in method for converting fromXMLGregorianCalendartoDate.classA built-in method for converting from JodaDateTimetoCalendar.classA built-in method for converting fromXMLGregorianCalendarto JodaLocalDate.classA built-in method for converting fromXMLGregorianCalendarto JodaLocalDateTime.classConversion fromXMLGregorianCalendarto JodaLocalTime.classA built-in method for converting fromXMLGregorianCalendartoLocalDate.classA built-in method for converting fromXMLGregorianCalendartoLocalDateTime.classA built-in method for converting fromXMLGregorianCalendartoString.classclassA built-in method for converting fromZonedDateTimetoXMLGregorianCalendar. -
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 MethodModifier and TypeClassDescriptionclassSelectedMethod<T extends Method>A selected method with additional metadata that might be required for further usage of the selected method.Methods in org.mapstruct.ap.internal.model.source.selector with type parameters of type MethodModifier and TypeMethodDescription<T extends Method>
List<SelectedMethod<T>> CreateOrUpdateSelector.getMatchingMethods(List<SelectedMethod<T>> methods, SelectionContext context) <T extends Method>
List<SelectedMethod<T>> FactoryParameterSelector.getMatchingMethods(List<SelectedMethod<T>> methods, SelectionContext context) <T extends Method>
List<SelectedMethod<T>> InheritanceSelector.getMatchingMethods(List<SelectedMethod<T>> methods, SelectionContext context) <T extends Method>
List<SelectedMethod<T>> LifecycleOverloadDeduplicateSelector.getMatchingMethods(List<SelectedMethod<T>> methods, SelectionContext context) <T extends Method>
List<SelectedMethod<T>> MethodFamilySelector.getMatchingMethods(List<SelectedMethod<T>> methods, SelectionContext context) <T extends Method>
List<SelectedMethod<T>> MethodSelectors.getMatchingMethods(List<T> methods, SelectionContext context) Selects those methods which match the given types and other criteria<T extends Method>
List<SelectedMethod<T>> MostSpecificResultTypeSelector.getMatchingMethods(List<SelectedMethod<T>> candidates, SelectionContext context) <T extends Method>
List<SelectedMethod<T>> QualifierSelector.getMatchingMethods(List<SelectedMethod<T>> methods, SelectionContext context) <T extends Method>
List<SelectedMethod<T>> SourceRhsSelector.getMatchingMethods(List<SelectedMethod<T>> candidates, SelectionContext context) <T extends Method>
List<SelectedMethod<T>> TargetTypeSelector.getMatchingMethods(List<SelectedMethod<T>> methods, SelectionContext context) <T extends Method>
List<SelectedMethod<T>> TypeSelector.getMatchingMethods(List<SelectedMethod<T>> methods, SelectionContext context) Methods in org.mapstruct.ap.internal.model.source.selector that return MethodMethods in org.mapstruct.ap.internal.model.source.selector with parameters of type MethodModifier and TypeMethodDescriptionstatic SelectionContextSelectionContext.forFactoryMethods(Method mappingMethod, Type alternativeTarget, SelectionParameters selectionParameters, TypeFactory typeFactory) static SelectionContextSelectionContext.forLifecycleMethods(Method mappingMethod, Type targetType, SelectionParameters selectionParameters, TypeFactory typeFactory, Supplier<List<ParameterBinding>> additionalParameterBindingsProvider) static SelectionContextSelectionContext.forMappingMethods(Method mappingMethod, Type source, Type target, SelectionCriteria criteria, TypeFactory typeFactory) static SelectionContextSelectionContext.forPresenceCheckMethods(Method mappingMethod, SelectionParameters selectionParameters, TypeFactory typeFactory) static SelectionContextSelectionContext.forSourceParameterPresenceCheckMethods(Method mappingMethod, SelectionParameters selectionParameters, Parameter sourceParameter, TypeFactory typeFactory) -
Uses of Method in org.mapstruct.ap.internal.processor.creation
Methods in org.mapstruct.ap.internal.processor.creation with parameters of type MethodModifier and TypeMethodDescriptionMappingResolverImpl.getTargetAssignment(Method mappingMethod, ForgedMethodHistory description, Type targetType, FormattingParameters formattingParameters, SelectionCriteria criteria, SourceRHS sourceRHS, AnnotationMirror positionHint, Supplier<Assignment> forger) Constructor parameters in org.mapstruct.ap.internal.processor.creation with type arguments of type MethodModifierConstructorDescriptionMappingResolverImpl(FormattingMessager messager, ElementUtils elementUtils, TypeUtils typeUtils, TypeFactory typeFactory, List<Method> sourceModel, List<MapperReference> mapperReferences, boolean verboseLogging)