public class MapperConfigPrism
extends java.lang.Object
@org.mapstruct.MapperConfig annotation.| Modifier and Type | Class and Description |
|---|---|
static class |
MapperConfigPrism.Values
A class whose members corespond to those of org.mapstruct.MapperConfig
but which each return the AnnotationValue corresponding to
that member in the model of the annotations.
|
| Modifier and Type | Field and Description |
|---|---|
boolean |
isValid
Determine whether the underlying AnnotationMirror has no errors.
|
javax.lang.model.element.AnnotationMirror |
mirror
The underlying AnnotationMirror of the annotation
represented by this Prism.
|
MapperConfigPrism.Values |
values
An instance of the Values inner class whose
methods return the AnnotationValues used to build this prism.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
collectionMappingStrategy()
Returns a String representing the value of the
org.mapstruct.CollectionMappingStrategy collectionMappingStrategy() member of the Annotation. |
java.lang.String |
componentModel()
Returns a String representing the value of the
java.lang.String componentModel() member of the Annotation. |
static MapperConfigPrism |
getInstance(javax.lang.model.element.AnnotationMirror mirror)
Return a prism of the
@org.mapstruct.MapperConfig annotation whose mirror is mirror. |
static MapperConfigPrism |
getInstanceOn(javax.lang.model.element.Element e)
Return a prism representing the
@org.mapstruct.MapperConfig annotation on 'e'. |
java.lang.String |
unmappedTargetPolicy()
Returns a String representing the value of the
org.mapstruct.ReportingPolicy unmappedTargetPolicy() member of the Annotation. |
java.util.List<javax.lang.model.type.TypeMirror> |
uses()
Returns a List
uses() member of the Annotation. |
public final MapperConfigPrism.Values values
public final boolean isValid
public final javax.lang.model.element.AnnotationMirror mirror
public static MapperConfigPrism getInstanceOn(javax.lang.model.element.Element e)
@org.mapstruct.MapperConfig annotation on 'e'.
similar to e.getAnnotation(org.mapstruct.MapperConfig.class) except that
an instance of this class rather than an instance of org.mapstruct.MapperConfig
is returned.public static MapperConfigPrism getInstance(javax.lang.model.element.AnnotationMirror mirror)
@org.mapstruct.MapperConfig annotation whose mirror is mirror.public java.util.List<javax.lang.model.type.TypeMirror> uses()
uses() member of the Annotation.MapperConfig.uses()public java.lang.String unmappedTargetPolicy()
org.mapstruct.ReportingPolicy unmappedTargetPolicy() member of the Annotation.MapperConfig.unmappedTargetPolicy()public java.lang.String componentModel()
java.lang.String componentModel() member of the Annotation.MapperConfig.componentModel()public java.lang.String collectionMappingStrategy()
org.mapstruct.CollectionMappingStrategy collectionMappingStrategy() member of the Annotation.MapperConfig.collectionMappingStrategy()Copyright © 2012-2014. All Rights Reserved.