
public class ObjectFactoryMethodResolver extends Object
| Modifier and Type | Method and Description |
|---|---|
static MethodReference |
getBuilderFactoryMethod(Method method,
BuilderType builder) |
static MethodReference |
getFactoryMethod(Method method,
SelectionParameters selectionParameters,
MappingBuilderContext ctx)
returns a no arg factory method
|
static MethodReference |
getFactoryMethod(Method method,
Type alternativeTarget,
SelectionParameters selectionParameters,
MappingBuilderContext ctx)
returns a no arg factory method
|
static MethodReference |
getFactoryMethodReference(Method method,
SelectedMethod<SourceMethod> matchingFactoryMethod,
MappingBuilderContext ctx) |
static List<SelectedMethod<SourceMethod>> |
getMatchingFactoryMethods(Method method,
Type alternativeTarget,
SelectionParameters selectionParameters,
MappingBuilderContext ctx) |
public static MethodReference getFactoryMethod(Method method, SelectionParameters selectionParameters, MappingBuilderContext ctx)
method - target mapping methodselectionParameters - parameters used in the selection processctx - public static MethodReference getFactoryMethod(Method method, Type alternativeTarget, SelectionParameters selectionParameters, MappingBuilderContext ctx)
method - target mapping methodalternativeTarget - alternative to Method.getResultType() e.g. when target is abstractselectionParameters - parameters used in the selection processctx - public static MethodReference getFactoryMethodReference(Method method, SelectedMethod<SourceMethod> matchingFactoryMethod, MappingBuilderContext ctx)
public static List<SelectedMethod<SourceMethod>> getMatchingFactoryMethods(Method method, Type alternativeTarget, SelectionParameters selectionParameters, MappingBuilderContext ctx)
public static MethodReference getBuilderFactoryMethod(Method method, BuilderType builder)
Copyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.