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