Class ValueMappingOptions
- java.lang.Object
-
- org.mapstruct.ap.internal.model.source.ValueMappingOptions
-
public class ValueMappingOptions extends Object
Represents the mapping between one value constant and another.- Author:
- Sjaak Derksen
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static ValueMappingOptionsfromMappingGem(org.mapstruct.ap.internal.gem.ValueMappingGem mapping)static voidfromMappingsGem(org.mapstruct.ap.internal.gem.ValueMappingsGem mappingsGem, ExecutableElement method, FormattingMessager messager, Set<ValueMappingOptions> mappings)AnnotationMirrorgetMirror()StringgetSource()AnnotationValuegetSourceAnnotationValue()StringgetTarget()AnnotationValuegetTargetAnnotationValue()inthashCode()ValueMappingOptionsinverse()
-
-
-
Method Detail
-
fromMappingsGem
public static void fromMappingsGem(org.mapstruct.ap.internal.gem.ValueMappingsGem mappingsGem, ExecutableElement method, FormattingMessager messager, Set<ValueMappingOptions> mappings)
-
fromMappingGem
public static ValueMappingOptions fromMappingGem(org.mapstruct.ap.internal.gem.ValueMappingGem mapping)
-
getSource
public String getSource()
- Returns:
- the name of the constant in the source.
-
getTarget
public String getTarget()
- Returns:
- the name of the constant in the target.
-
getMirror
public AnnotationMirror getMirror()
-
getSourceAnnotationValue
public AnnotationValue getSourceAnnotationValue()
-
getTargetAnnotationValue
public AnnotationValue getTargetAnnotationValue()
-
inverse
public ValueMappingOptions inverse()
-
-