Package org.mapstruct.ap.internal.gem
Class ValueMappingsGem.BuilderImpl
- java.lang.Object
-
- org.mapstruct.ap.internal.gem.ValueMappingsGem.BuilderImpl
-
- All Implemented Interfaces:
ValueMappingsGem.Builder<ValueMappingsGem>
- Enclosing class:
- ValueMappingsGem
private static class ValueMappingsGem.BuilderImpl extends java.lang.Object implements ValueMappingsGem.Builder<ValueMappingsGem>
-
-
Field Summary
Fields Modifier and Type Field Description private javax.lang.model.element.AnnotationMirrormirrorprivate org.mapstruct.tools.gem.GemValue<java.util.List<ValueMappingGem>>value
-
Constructor Summary
Constructors Modifier Constructor Description privateBuilderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValueMappingsGembuild()The build method can be overriden in a custom custom implementation, which allows the user to define his own custom validation on the annotation.ValueMappingsGem.BuildersetMirror(javax.lang.model.element.AnnotationMirror mirror)Sets the annotation mirrorValueMappingsGem.BuildersetValue(org.mapstruct.tools.gem.GemValue<java.util.List<ValueMappingGem>> value)Sets theGemValueforValueMappingsGem.value
-
-
-
Field Detail
-
value
private org.mapstruct.tools.gem.GemValue<java.util.List<ValueMappingGem>> value
-
mirror
private javax.lang.model.element.AnnotationMirror mirror
-
-
Method Detail
-
setValue
public ValueMappingsGem.Builder setValue(org.mapstruct.tools.gem.GemValue<java.util.List<ValueMappingGem>> value)
Description copied from interface:ValueMappingsGem.BuilderSets theGemValueforValueMappingsGem.value- Specified by:
setValuein interfaceValueMappingsGem.Builder<ValueMappingsGem>- Returns:
- the
ValueMappingsGem.Builderfor this gem, representingValueMappingsGem
-
setMirror
public ValueMappingsGem.Builder setMirror(javax.lang.model.element.AnnotationMirror mirror)
Description copied from interface:ValueMappingsGem.BuilderSets the annotation mirror- Specified by:
setMirrorin interfaceValueMappingsGem.Builder<ValueMappingsGem>- Parameters:
mirror- the mirror which this gem represents- Returns:
- the
ValueMappingsGem.Builderfor this gem, representingValueMappingsGem
-
build
public ValueMappingsGem build()
Description copied from interface:ValueMappingsGem.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 interfaceValueMappingsGem.Builder<ValueMappingsGem>- Returns:
- the representation of the annotation
-
-