Package org.mapstruct.ap.internal.model
Class ValueMappingMethod
java.lang.Object
org.mapstruct.ap.internal.writer.FreeMarkerWritable
org.mapstruct.ap.internal.model.common.ModelElement
org.mapstruct.ap.internal.model.GeneratedTypeMethod
org.mapstruct.ap.internal.model.MappingMethod
org.mapstruct.ap.internal.model.ValueMappingMethod
- All Implemented Interfaces:
Writable
A
ValueMappingMethod which maps one value type to another, optionally configured by one or more
ValueMappingOptionss. For now, only enum-to-enum mapping is supported.- Author:
- Sjaak Derksen
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from interface org.mapstruct.ap.internal.writer.Writable
Writable.Context -
Method Summary
Modifier and TypeMethodDescriptionReturns a set containing thoseTypes referenced by this model element for which an import statement needs to be declared.protected booleanbooleanMethods inherited from class org.mapstruct.ap.internal.model.MappingMethod
equals, filterMappingTarget, getAccessibility, getAfterMappingReferences, getBeforeMappingReferencesWithMappingTarget, getBeforeMappingReferencesWithoutMappingTarget, getName, getParameterNames, getParameters, getResultName, getResultType, getReturnType, getSourceParameters, getThrownTypes, hashCode, isExistingInstanceMapping, isStatic, toStringMethods inherited from class org.mapstruct.ap.internal.writer.FreeMarkerWritable
getTemplateName, getTemplateNameForClass, write
-
Method Details
-
getImportTypes
Description copied from class:ModelElementReturns a set containing thoseTypes referenced by this model element for which an import statement needs to be declared.- Overrides:
getImportTypesin classMappingMethod- Returns:
- A set with type referenced by this model element. Must not be
null.
-
hasMappingWithTargetAsException
protected boolean hasMappingWithTargetAsException() -
getValueMappings
-
getDefaultTarget
-
getNullTarget
-
getUnexpectedValueMappingException
-
getSourceParameter
-
isOverridden
public boolean isOverridden() -
getAnnotations
-