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