Package org.mapstruct.ap.internal.gem
Interface SubclassMappingsGem.Builder<T>
-
- All Known Implementing Classes:
SubclassMappingsGem.BuilderImpl
- Enclosing class:
- SubclassMappingsGem
public static interface SubclassMappingsGem.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.SubclassMappingsGem.BuildersetMirror(javax.lang.model.element.AnnotationMirror mirror)Sets the annotation mirrorSubclassMappingsGem.BuildersetValue(org.mapstruct.tools.gem.GemValue<java.util.List<SubclassMappingGem>> methodName)Sets theGemValueforSubclassMappingsGem.value
-
-
-
Method Detail
-
setValue
SubclassMappingsGem.Builder setValue(org.mapstruct.tools.gem.GemValue<java.util.List<SubclassMappingGem>> methodName)
Sets theGemValueforSubclassMappingsGem.value- Returns:
- the
SubclassMappingsGem.Builderfor this gem, representingSubclassMappingsGem
-
setMirror
SubclassMappingsGem.Builder setMirror(javax.lang.model.element.AnnotationMirror mirror)
Sets the annotation mirror- Parameters:
mirror- the mirror which this gem represents- Returns:
- the
SubclassMappingsGem.Builderfor this gem, representingSubclassMappingsGem
-
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
-
-