Package org.mapstruct.ap.internal.gem
Interface EnumMappingGem.Builder<T>
-
- All Known Implementing Classes:
EnumMappingGem.BuilderImpl
- Enclosing class:
- EnumMappingGem
public static interface EnumMappingGem.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.EnumMappingGem.BuildersetConfiguration(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)Sets theGemValueforEnumMappingGem.configurationEnumMappingGem.BuildersetMirror(javax.lang.model.element.AnnotationMirror mirror)Sets the annotation mirrorEnumMappingGem.BuildersetNametransformationstrategy(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)Sets theGemValueforEnumMappingGem.nameTransformationStrategyEnumMappingGem.BuildersetUnexpectedvaluemappingexception(org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> methodName)Sets theGemValueforEnumMappingGem.unexpectedValueMappingException
-
-
-
Method Detail
-
setNametransformationstrategy
EnumMappingGem.Builder setNametransformationstrategy(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)
Sets theGemValueforEnumMappingGem.nameTransformationStrategy- Returns:
- the
EnumMappingGem.Builderfor this gem, representingEnumMappingGem
-
setConfiguration
EnumMappingGem.Builder setConfiguration(org.mapstruct.tools.gem.GemValue<java.lang.String> methodName)
Sets theGemValueforEnumMappingGem.configuration- Returns:
- the
EnumMappingGem.Builderfor this gem, representingEnumMappingGem
-
setUnexpectedvaluemappingexception
EnumMappingGem.Builder setUnexpectedvaluemappingexception(org.mapstruct.tools.gem.GemValue<javax.lang.model.type.TypeMirror> methodName)
Sets theGemValueforEnumMappingGem.unexpectedValueMappingException- Returns:
- the
EnumMappingGem.Builderfor this gem, representingEnumMappingGem
-
setMirror
EnumMappingGem.Builder setMirror(javax.lang.model.element.AnnotationMirror mirror)
Sets the annotation mirror- Parameters:
mirror- the mirror which this gem represents- Returns:
- the
EnumMappingGem.Builderfor this gem, representingEnumMappingGem
-
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
-
-