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 boolean
equals(Object obj)
static ValueMappingOptions
fromMappingGem(org.mapstruct.ap.internal.gem.ValueMappingGem mapping)
static void
fromMappingsGem(org.mapstruct.ap.internal.gem.ValueMappingsGem mappingsGem, ExecutableElement method, FormattingMessager messager, List<ValueMappingOptions> mappings)
AnnotationMirror
getMirror()
String
getSource()
AnnotationValue
getSourceAnnotationValue()
String
getTarget()
AnnotationValue
getTargetAnnotationValue()
int
hashCode()
ValueMappingOptions
inverse()
-
-
-
Method Detail
-
fromMappingsGem
public static void fromMappingsGem(org.mapstruct.ap.internal.gem.ValueMappingsGem mappingsGem, ExecutableElement method, FormattingMessager messager, List<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()
-
-