public class MappingOptions extends DelegatingOptions
@Mapping
(no intermediate state).Modifier and Type | Class and Description |
---|---|
static class |
MappingOptions.InheritContext |
componentModel, getBuilder, getCollectionMappingStrategy, getInjectionStrategy, getMappingInheritanceStrategy, getNullValueMappingStrategy, getUnexpectedValueMappingException, implementationName, implementationPackage, imports, isDisableSubMappingMethodsGeneration, toDeclaredTypes, typeConversionPolicy, unmappedSourcePolicy, unmappedTargetPolicy, uses
public static Set<String> getMappingTargetNamesBy(Predicate<MappingOptions> predicate, Set<MappingOptions> mappings)
public static void addInstances(org.mapstruct.ap.internal.gem.MappingsGem gem, ExecutableElement method, BeanMappingOptions beanMappingOptions, FormattingMessager messager, Types typeUtils, Set<MappingOptions> mappings)
public static void addInstance(org.mapstruct.ap.internal.gem.MappingGem mapping, ExecutableElement method, BeanMappingOptions beanMappingOptions, FormattingMessager messager, Types typeUtils, Set<MappingOptions> mappings)
public static MappingOptions forIgnore(String targetName)
public String getTargetName()
public AnnotationValue getTargetAnnotationValue()
public String getSourceName()
parameter1.foo
) or
unqualified (e.g. foo
) property reference.public AnnotationValue getSourceAnnotationValue()
public String getConstant()
public String getJavaExpression()
public String getDefaultJavaExpression()
public String getDefaultValue()
public FormattingParameters getFormattingParameters()
public SelectionParameters getSelectionParameters()
public boolean isIgnored()
public AnnotationMirror getMirror()
public Element getElement()
public AnnotationValue getDependsOnAnnotationValue()
public MappingOptions.InheritContext getInheritContext()
public org.mapstruct.ap.internal.gem.NullValueCheckStrategyGem getNullValueCheckStrategy()
getNullValueCheckStrategy
in class DelegatingOptions
public org.mapstruct.ap.internal.gem.NullValuePropertyMappingStrategyGem getNullValuePropertyMappingStrategy()
getNullValuePropertyMappingStrategy
in class DelegatingOptions
public MappingControl getMappingControl(Elements elementUtils)
getMappingControl
in class DelegatingOptions
public boolean canInverse()
public MappingOptions copyForInverseInheritance(SourceMethod templateMethod, BeanMappingOptions beanMappingOptions)
public MappingOptions copyForForwardInheritance(SourceMethod templateMethod, BeanMappingOptions beanMappingOptions)
public boolean hasAnnotation()
hasAnnotation
in class DelegatingOptions
Copyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.