Package org.mapstruct.ap.internal.gem
Class NamedGem.BuilderImpl
- java.lang.Object
-
- org.mapstruct.ap.internal.gem.NamedGem.BuilderImpl
-
- All Implemented Interfaces:
NamedGem.Builder<NamedGem>
- Enclosing class:
- NamedGem
private static class NamedGem.BuilderImpl extends java.lang.Object implements NamedGem.Builder<NamedGem>
-
-
Constructor Summary
Constructors Modifier Constructor Description privateBuilderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NamedGembuild()The build method can be overriden in a custom custom implementation, which allows the user to define his own custom validation on the annotation.NamedGem.BuildersetMirror(javax.lang.model.element.AnnotationMirror mirror)Sets the annotation mirrorNamedGem.BuildersetValue(org.mapstruct.tools.gem.GemValue<java.lang.String> value)Sets theGemValueforNamedGem.value
-
-
-
Method Detail
-
setValue
public NamedGem.Builder setValue(org.mapstruct.tools.gem.GemValue<java.lang.String> value)
Description copied from interface:NamedGem.BuilderSets theGemValueforNamedGem.value- Specified by:
setValuein interfaceNamedGem.Builder<NamedGem>- Returns:
- the
NamedGem.Builderfor this gem, representingNamedGem
-
setMirror
public NamedGem.Builder setMirror(javax.lang.model.element.AnnotationMirror mirror)
Description copied from interface:NamedGem.BuilderSets the annotation mirror- Specified by:
setMirrorin interfaceNamedGem.Builder<NamedGem>- Parameters:
mirror- the mirror which this gem represents- Returns:
- the
NamedGem.Builderfor this gem, representingNamedGem
-
build
public NamedGem build()
Description copied from interface:NamedGem.BuilderThe build method can be overriden in a custom custom implementation, which allows the user to define his own custom validation on the annotation.- Specified by:
buildin interfaceNamedGem.Builder<NamedGem>- Returns:
- the representation of the annotation
-
-