Package org.mapstruct.ap.internal.gem
Class BeforeMappingGem.BuilderImpl
- java.lang.Object
-
- org.mapstruct.ap.internal.gem.BeforeMappingGem.BuilderImpl
-
- All Implemented Interfaces:
BeforeMappingGem.Builder<BeforeMappingGem>
- Enclosing class:
- BeforeMappingGem
private static class BeforeMappingGem.BuilderImpl extends java.lang.Object implements BeforeMappingGem.Builder<BeforeMappingGem>
-
-
Field Summary
Fields Modifier and Type Field Description private javax.lang.model.element.AnnotationMirrormirror
-
Constructor Summary
Constructors Modifier Constructor Description privateBuilderImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BeforeMappingGembuild()The build method can be overriden in a custom custom implementation, which allows the user to define his own custom validation on the annotation.BeforeMappingGem.BuildersetMirror(javax.lang.model.element.AnnotationMirror mirror)Sets the annotation mirror
-
-
-
Method Detail
-
setMirror
public BeforeMappingGem.Builder setMirror(javax.lang.model.element.AnnotationMirror mirror)
Description copied from interface:BeforeMappingGem.BuilderSets the annotation mirror- Specified by:
setMirrorin interfaceBeforeMappingGem.Builder<BeforeMappingGem>- Parameters:
mirror- the mirror which this gem represents- Returns:
- the
BeforeMappingGem.Builderfor this gem, representingBeforeMappingGem
-
build
public BeforeMappingGem build()
Description copied from interface:BeforeMappingGem.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 interfaceBeforeMappingGem.Builder<BeforeMappingGem>- Returns:
- the representation of the annotation
-
-