public class ParameterBinding extends Object
Modifier and Type | Method and Description |
---|---|
static ParameterBinding |
forMappingTargetBinding(Type resultType) |
static ParameterBinding |
forSourceTypeBinding(Type sourceType) |
static ParameterBinding |
forTargetTypeBinding(Type classTypeOf) |
static ParameterBinding |
fromParameter(Parameter parameter) |
static List<ParameterBinding> |
fromParameters(List<Parameter> parameters) |
static ParameterBinding |
fromSourceRHS(SourceRHS sourceRHS) |
static ParameterBinding |
fromTypeAndName(Type parameterType,
String parameterName) |
Set<Type> |
getImportTypes() |
SourceRHS |
getSourceRHS() |
Type |
getType() |
String |
getVariableName() |
boolean |
isMappingContext() |
boolean |
isMappingTarget() |
boolean |
isTargetType() |
public String getVariableName()
public boolean isTargetType()
true
, if the parameter being bound is a @TargetType
parameter.public boolean isMappingTarget()
true
, if the parameter being bound is a @MappingTarget
parameter.public boolean isMappingContext()
true
, if the parameter being bound is a @MappingContext
parameter.public Type getType()
public SourceRHS getSourceRHS()
public static ParameterBinding fromParameter(Parameter parameter)
parameter
- parameterpublic static List<ParameterBinding> fromParameters(List<Parameter> parameters)
public static ParameterBinding fromTypeAndName(Type parameterType, String parameterName)
public static ParameterBinding forTargetTypeBinding(Type classTypeOf)
classTypeOf
- the type representing Class<X>
for the target type X
public static ParameterBinding forMappingTargetBinding(Type resultType)
resultType
- type of the mapping targetpublic static ParameterBinding forSourceTypeBinding(Type sourceType)
sourceType
- type of the parameterpublic static ParameterBinding fromSourceRHS(SourceRHS sourceRHS)
Copyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.