Class ValueMappingOptions
- java.lang.Object
-
- org.mapstruct.ap.internal.model.source.ValueMappingOptions
-
public class ValueMappingOptions extends java.lang.ObjectRepresents the mapping between one value constant and another.
-
-
Field Summary
Fields Modifier and Type Field Description private javax.lang.model.element.AnnotationMirrormirrorprivate java.lang.Stringsourceprivate javax.lang.model.element.AnnotationValuesourceAnnotationValueprivate java.lang.Stringtargetprivate javax.lang.model.element.AnnotationValuetargetAnnotationValue
-
Constructor Summary
Constructors Modifier Constructor Description privateValueMappingOptions(java.lang.String source, java.lang.String target, javax.lang.model.element.AnnotationMirror mirror, javax.lang.model.element.AnnotationValue sourceAnnotationValue, javax.lang.model.element.AnnotationValue targetAnnotationValue)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)static ValueMappingOptionsfromMappingGem(ValueMappingGem mapping)static voidfromMappingsGem(ValueMappingsGem mappingsGem, javax.lang.model.element.ExecutableElement method, FormattingMessager messager, java.util.List<ValueMappingOptions> mappings)javax.lang.model.element.AnnotationMirrorgetMirror()java.lang.StringgetSource()javax.lang.model.element.AnnotationValuegetSourceAnnotationValue()java.lang.StringgetTarget()javax.lang.model.element.AnnotationValuegetTargetAnnotationValue()inthashCode()ValueMappingOptionsinverse()
-
-
-
Field Detail
-
source
private final java.lang.String source
-
target
private final java.lang.String target
-
mirror
private final javax.lang.model.element.AnnotationMirror mirror
-
sourceAnnotationValue
private final javax.lang.model.element.AnnotationValue sourceAnnotationValue
-
targetAnnotationValue
private final javax.lang.model.element.AnnotationValue targetAnnotationValue
-
-
Method Detail
-
fromMappingsGem
public static void fromMappingsGem(ValueMappingsGem mappingsGem, javax.lang.model.element.ExecutableElement method, FormattingMessager messager, java.util.List<ValueMappingOptions> mappings)
-
fromMappingGem
public static ValueMappingOptions fromMappingGem(ValueMappingGem mapping)
-
getSource
public java.lang.String getSource()
- Returns:
- the name of the constant in the source.
-
getTarget
public java.lang.String getTarget()
- Returns:
- the name of the constant in the target.
-
getMirror
public javax.lang.model.element.AnnotationMirror getMirror()
-
getSourceAnnotationValue
public javax.lang.model.element.AnnotationValue getSourceAnnotationValue()
-
getTargetAnnotationValue
public javax.lang.model.element.AnnotationValue getTargetAnnotationValue()
-
inverse
public ValueMappingOptions inverse()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-