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 inBeanMappingMethod
org.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.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 class
CreateDecimalFormat
HelperMethod that creates aDecimalFormat
DecimalFormat 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 class
ForgedMethod
This method will be generated in absence of a suitable abstract method to implement.class
HelperMethod
A non mapping method to be generated.Fields in org.mapstruct.ap.internal.model declared as Method Modifier and Type Field Description protected Method
AbstractBaseBuilder. method
protected Method
AbstractBaseBuilder. method
protected Method
AbstractBaseBuilder. method
protected Method
AbstractBaseBuilder. method
protected Method
AbstractBaseBuilder. method
protected Method
AbstractBaseBuilder. method
protected Method
AbstractBaseBuilder. method
protected Method
AbstractBaseBuilder. method
protected Method
AbstractBaseBuilder. method
Methods in org.mapstruct.ap.internal.model with parameters of type Method Modifier and Type Method Description static List<LifecycleCallbackMethodReference>
LifecycleMethodResolver. afterMappingMethods(Method method, Type alternativeTarget, SelectionParameters selectionParameters, MappingBuilderContext ctx, Set<String> existingVariableNames)
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 ForgedMethod
ForgedMethod. 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 MethodReference
MethodReference. forForgedMethod(Method method, List<ParameterBinding> parameterBindings)
static MethodReference
MethodReference. forMapperReference(Method method, MapperReference declaringMapper, List<ParameterBinding> parameterBindings)
static LifecycleCallbackMethodReference
LifecycleCallbackMethodReference. forMethodReference(SelectedMethod<SourceMethod> lifecycleMethod, MapperReference mapperReference, Method containingMethod, Set<String> existingVariableNames)
static ForgedMethod
ForgedMethod. 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.static LifecycleCallbackMethodReference
LifecycleCallbackMethodReference. forParameterProvidedMethod(SelectedMethod<SourceMethod> lifecycleMethod, Parameter providingParameter, Method containingMethod, Set<String> existingVariableNames)
static MethodReference
MethodReference. forParameterProvidedMethod(Method method, Parameter providingParameter, List<ParameterBinding> parameterBindings)
static ForgedMethod
ForgedMethod. 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 ForgedMethod
ForgedMethod. 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 MethodReference
ObjectFactoryMethodResolver. getBuilderFactoryMethod(Method method, BuilderType builder)
static MethodReference
BuilderFinisherMethodResolver. getBuilderFinisherMethod(Method method, BuilderType builderType, MappingBuilderContext ctx)
static MethodReference
ObjectFactoryMethodResolver. getFactoryMethod(Method method, Type alternativeTarget, SelectionParameters selectionParameters, MappingBuilderContext ctx)
returns a no arg factory methodstatic MethodReference
ObjectFactoryMethodResolver. getFactoryMethod(Method method, SelectionParameters selectionParameters, MappingBuilderContext ctx)
returns a no arg factory methodstatic MethodReference
ObjectFactoryMethodResolver. getFactoryMethodReference(Method method, SelectedMethod<SourceMethod> matchingFactoryMethod, MappingBuilderContext ctx)
static List<SelectedMethod<SourceMethod>>
ObjectFactoryMethodResolver. getMatchingFactoryMethods(Method method, Type alternativeTarget, SelectionParameters selectionParameters, MappingBuilderContext ctx)
static PresenceCheck
PresenceCheckMethodResolver. getPresenceCheck(Method method, SelectionParameters selectionParameters, MappingBuilderContext ctx)
static PresenceCheck
PresenceCheckMethodResolver. getPresenceCheckForSourceParameter(Method method, SelectionParameters selectionParameters, Parameter sourceParameter, MappingBuilderContext ctx)
Assignment
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 Assignment
ContainerMappingMethodBuilder. getWrapper(Assignment assignment, Method method)
protected Assignment
IterableMappingMethod.Builder. getWrapper(Assignment assignment, Method method)
protected Assignment
StreamMappingMethod.Builder. getWrapper(Assignment assignment, Method method)
protected abstract M
ContainerMappingMethodBuilder. instantiateMappingMethod(Method method, Collection<String> existingVariables, Assignment assignment, MethodReference factoryMethod, boolean mapNullToDefault, String loopVariableName, List<LifecycleCallbackMethodReference> beforeMappingMethods, List<LifecycleCallbackMethodReference> afterMappingMethods, SelectionParameters selectionParameters)
protected IterableMappingMethod
IterableMappingMethod.Builder. instantiateMappingMethod(Method method, Collection<String> existingVariables, Assignment assignment, MethodReference factoryMethod, boolean mapNullToDefault, String loopVariableName, List<LifecycleCallbackMethodReference> beforeMappingMethods, List<LifecycleCallbackMethodReference> afterMappingMethods, SelectionParameters selectionParameters)
protected StreamMappingMethod
StreamMappingMethod.Builder. instantiateMappingMethod(Method method, Collection<String> existingVariables, Assignment assignment, MethodReference factoryMethod, boolean mapNullToDefault, String loopVariableName, List<LifecycleCallbackMethodReference> beforeMappingMethods, List<LifecycleCallbackMethodReference> afterMappingMethods, SelectionParameters selectionParameters)
CollectionAssignmentBuilder
CollectionAssignmentBuilder. method(Method method)
NestedTargetPropertyMappingHolder.Builder
NestedTargetPropertyMappingHolder.Builder. method(Method method)
ValueMappingMethod.Builder
ValueMappingMethod.Builder. method(Method sourceMethod)
Constructors in org.mapstruct.ap.internal.model with parameters of type Method Constructor Description DelegatingMethod(Method method)
MappingMethod(Method method)
MappingMethod(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.MappingMethod(Method method, List<Parameter> parameters)
MappingMethod(Method method, List<Parameter> parameters, Collection<String> existingVariableNames, List<LifecycleCallbackMethodReference> beforeMappingReferences, List<LifecycleCallbackMethodReference> afterMappingReferences)
MappingMethod(Method method, List<LifecycleCallbackMethodReference> beforeMappingReferences, List<LifecycleCallbackMethodReference> afterMappingReferences)
MethodReference(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 Method Modifier and Type Method Description SourceReference.BuilderFromMapping
SourceReference.BuilderFromMapping. method(Method method)
TargetReference.Builder
TargetReference.Builder. method(Method method)
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 class
SourceMethod
Represents 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 Method Modifier and Type Method Description Method
MappingOptions.InheritContext. getTemplateMethod()
Methods in org.mapstruct.ap.internal.model.source with parameters of type Method Modifier and Type Method Description Parameter
ParameterProvidedMethods. getParameterForProvidedMethod(Method method)
static boolean
MappingMethodUtils. isEnumMapping(Method method)
Checks if the providedmethod
is for enum mapping.Constructors in org.mapstruct.ap.internal.model.source with parameters of type Method Constructor Description 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 class
SelectedMethod<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 Method Modifier and Type Method Description <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>>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 Method Modifier and Type Method Description Method
SelectionContext. getMappingMethod()
Methods in org.mapstruct.ap.internal.model.source.selector with parameters of type Method Modifier and Type Method Description static SelectionContext
SelectionContext. forFactoryMethods(Method mappingMethod, Type alternativeTarget, SelectionParameters selectionParameters, TypeFactory typeFactory)
static SelectionContext
SelectionContext. forLifecycleMethods(Method mappingMethod, Type targetType, SelectionParameters selectionParameters, TypeFactory typeFactory)
static SelectionContext
SelectionContext. forMappingMethods(Method mappingMethod, Type source, Type target, SelectionCriteria criteria, TypeFactory typeFactory)
static SelectionContext
SelectionContext. forPresenceCheckMethods(Method mappingMethod, SelectionParameters selectionParameters, TypeFactory typeFactory)
static SelectionContext
SelectionContext. 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 Method Modifier and Type Method Description Assignment
MappingResolverImpl. 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 Method Constructor Description MappingResolverImpl(FormattingMessager messager, ElementUtils elementUtils, TypeUtils typeUtils, TypeFactory typeFactory, List<Method> sourceModel, List<MapperReference> mapperReferences, boolean verboseLogging)
-