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