Package org.mapstruct.ap.internal.gem
Class ValueMappingGem.BuilderImpl
- java.lang.Object
-
- org.mapstruct.ap.internal.gem.ValueMappingGem.BuilderImpl
-
- All Implemented Interfaces:
ValueMappingGem.Builder<ValueMappingGem>
- Enclosing class:
- ValueMappingGem
private static class ValueMappingGem.BuilderImpl extends java.lang.Object implements ValueMappingGem.Builder<ValueMappingGem>
-
-
Constructor Summary
Constructors Modifier Constructor Description privateBuilderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValueMappingGembuild()The build method can be overriden in a custom custom implementation, which allows the user to define his own custom validation on the annotation.ValueMappingGem.BuildersetMirror(javax.lang.model.element.AnnotationMirror mirror)Sets the annotation mirrorValueMappingGem.BuildersetSource(org.mapstruct.tools.gem.GemValue<java.lang.String> source)Sets theGemValueforValueMappingGem.sourceValueMappingGem.BuildersetTarget(org.mapstruct.tools.gem.GemValue<java.lang.String> target)Sets theGemValueforValueMappingGem.target
-
-
-
Method Detail
-
setSource
public ValueMappingGem.Builder setSource(org.mapstruct.tools.gem.GemValue<java.lang.String> source)
Description copied from interface:ValueMappingGem.BuilderSets theGemValueforValueMappingGem.source- Specified by:
setSourcein interfaceValueMappingGem.Builder<ValueMappingGem>- Returns:
- the
ValueMappingGem.Builderfor this gem, representingValueMappingGem
-
setTarget
public ValueMappingGem.Builder setTarget(org.mapstruct.tools.gem.GemValue<java.lang.String> target)
Description copied from interface:ValueMappingGem.BuilderSets theGemValueforValueMappingGem.target- Specified by:
setTargetin interfaceValueMappingGem.Builder<ValueMappingGem>- Returns:
- the
ValueMappingGem.Builderfor this gem, representingValueMappingGem
-
setMirror
public ValueMappingGem.Builder setMirror(javax.lang.model.element.AnnotationMirror mirror)
Description copied from interface:ValueMappingGem.BuilderSets the annotation mirror- Specified by:
setMirrorin interfaceValueMappingGem.Builder<ValueMappingGem>- Parameters:
mirror- the mirror which this gem represents- Returns:
- the
ValueMappingGem.Builderfor this gem, representingValueMappingGem
-
build
public ValueMappingGem build()
Description copied from interface:ValueMappingGem.BuilderThe build method can be overriden in a custom custom implementation, which allows the user to define his own custom validation on the annotation.- Specified by:
buildin interfaceValueMappingGem.Builder<ValueMappingGem>- Returns:
- the representation of the annotation
-
-