Package org.mapstruct.ap.internal.gem
Interface SubclassMappingGem.Builder<T>
-
- All Known Implementing Classes:
SubclassMappingGem.BuilderImpl
- Enclosing class:
- SubclassMappingGem
public static interface SubclassMappingGem.Builder<T>A builder that can be implemented by the user to define custom logic e.g. in the build method, prior to creating the annotation gem.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tbuild()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> methodName)Sets theGemValueforSubclassMappingGem.sourceSubclassMappingGem.BuildersetTarget(org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> methodName)Sets theGemValueforSubclassMappingGem.target
-
-
-
Method Detail
-
setSource
SubclassMappingGem.Builder setSource(org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> methodName)
Sets theGemValueforSubclassMappingGem.source- Returns:
- the
SubclassMappingGem.Builderfor this gem, representingSubclassMappingGem
-
setTarget
SubclassMappingGem.Builder setTarget(org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> methodName)
Sets theGemValueforSubclassMappingGem.target- Returns:
- the
SubclassMappingGem.Builderfor this gem, representingSubclassMappingGem
-
setMirror
SubclassMappingGem.Builder setMirror(javax.lang.model.element.AnnotationMirror mirror)
Sets the annotation mirror- Parameters:
mirror- the mirror which this gem represents- Returns:
- the
SubclassMappingGem.Builderfor this gem, representingSubclassMappingGem
-
build
T build()
The build method can be overriden in a custom custom implementation, which allows the user to define his own custom validation on the annotation.- Returns:
- the representation of the annotation
-
-