Package org.mapstruct.ap.internal.gem
Interface ValueMappingGem.Builder<T>
-
- All Known Implementing Classes:
ValueMappingGem.BuilderImpl
- Enclosing class:
- ValueMappingGem
public static interface ValueMappingGem.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.ValueMappingGem.BuildersetMirror(javax.lang.model.element.AnnotationMirror mirror)Sets the annotation mirrorValueMappingGem.BuildersetSource(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)Sets theGemValueforValueMappingGem.sourceValueMappingGem.BuildersetTarget(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)Sets theGemValueforValueMappingGem.target
-
-
-
Method Detail
-
setSource
ValueMappingGem.Builder setSource(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)
Sets theGemValueforValueMappingGem.source- Returns:
- the
ValueMappingGem.Builderfor this gem, representingValueMappingGem
-
setTarget
ValueMappingGem.Builder setTarget(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)
Sets theGemValueforValueMappingGem.target- Returns:
- the
ValueMappingGem.Builderfor this gem, representingValueMappingGem
-
setMirror
ValueMappingGem.Builder setMirror(javax.lang.model.element.AnnotationMirror mirror)
Sets the annotation mirror- Parameters:
mirror- the mirror which this gem represents- Returns:
- the
ValueMappingGem.Builderfor this gem, representingValueMappingGem
-
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
-
-