public class Mapping extends Object
@Mapping
.public static Map<String,List<Mapping>> fromMappingsPrism(org.mapstruct.ap.internal.prism.MappingsPrism mappingsAnnotation, ExecutableElement method, FormattingMessager messager, Types typeUtils)
public static Mapping fromMappingPrism(org.mapstruct.ap.internal.prism.MappingPrism mappingPrism, ExecutableElement element, FormattingMessager messager, Types typeUtils)
public void init(SourceMethod method, FormattingMessager messager, TypeFactory typeFactory, AccessorNamingUtils accessorNaming)
public void init(Parameter sourceParameter)
sourceParameter
- sets the source parameter that acts as a basis for this mappingpublic String getSourceName()
parameter1.foo
) or
unqualified (e.g. foo
) property reference.public String getConstant()
public String getJavaExpression()
public String getDefaultJavaExpression()
public String getTargetName()
public String getDefaultValue()
public FormattingParameters getFormattingParameters()
public SelectionParameters getSelectionParameters()
public boolean isIgnored()
public AnnotationMirror getMirror()
public AnnotationValue getSourceAnnotationValue()
public AnnotationValue getTargetAnnotationValue()
public AnnotationValue getDependsOnAnnotationValue()
public SourceReference getSourceReference()
public TargetReference getTargetReference()
public org.mapstruct.ap.internal.prism.NullValueCheckStrategyPrism getNullValueCheckStrategy()
public org.mapstruct.ap.internal.prism.NullValuePropertyMappingStrategyPrism getNullValuePropertyMappingStrategy()
public Mapping popTargetReference()
public Mapping popSourceReference()
public Mapping reverse(SourceMethod method, FormattingMessager messager, TypeFactory typeFactory, AccessorNamingUtils accessorNaming)
public Mapping copyForInheritanceTo(SourceMethod method)
method
- the method to create the copy forCopyright © 2012-2019 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.