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)
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 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 Mapping popTargetReference()
public Mapping popSourceReference()
public Mapping reverse(SourceMethod method, FormattingMessager messager, TypeFactory typeFactory)
public Mapping copyForInheritanceTo(SourceMethod method)
method
- the method to create the copy forCopyright © 2012-2017 Gunnar Morling; All rights reserved. Released under the Apache Software License 2.0.