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