public class MappingPrism
extends java.lang.Object
@org.mapstruct.Mapping annotation.| Modifier and Type | Class and Description |
|---|---|
static class |
MappingPrism.Values
A class whose members corespond to those of org.mapstruct.Mapping
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.
|
MappingPrism.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 |
constant()
Returns a String representing the value of the
java.lang.String constant() member of the Annotation. |
java.lang.String |
dateFormat()
Returns a String representing the value of the
java.lang.String dateFormat() member of the Annotation. |
java.lang.String |
expression()
Returns a String representing the value of the
java.lang.String expression() member of the Annotation. |
static MappingPrism |
getInstance(javax.lang.model.element.AnnotationMirror mirror)
Return a prism of the
@org.mapstruct.Mapping annotation whose mirror is mirror. |
static MappingPrism |
getInstanceOn(javax.lang.model.element.Element e)
Return a prism representing the
@org.mapstruct.Mapping annotation on 'e'. |
java.lang.Boolean |
ignore()
Returns a Boolean representing the value of the
boolean ignore() member of the Annotation. |
java.lang.String |
source()
Returns a String representing the value of the
java.lang.String source() member of the Annotation. |
java.lang.String |
target()
Returns a String representing the value of the
java.lang.String target() member of the Annotation. |
public final MappingPrism.Values values
public final boolean isValid
public final javax.lang.model.element.AnnotationMirror mirror
public static MappingPrism getInstanceOn(javax.lang.model.element.Element e)
@org.mapstruct.Mapping annotation on 'e'.
similar to e.getAnnotation(org.mapstruct.Mapping.class) except that
an instance of this class rather than an instance of org.mapstruct.Mapping
is returned.public static MappingPrism getInstance(javax.lang.model.element.AnnotationMirror mirror)
@org.mapstruct.Mapping annotation whose mirror is mirror.public java.lang.String source()
java.lang.String source() member of the Annotation.Mapping.source()public java.lang.String target()
java.lang.String target() member of the Annotation.Mapping.target()public java.lang.String dateFormat()
java.lang.String dateFormat() member of the Annotation.Mapping.dateFormat()public java.lang.String constant()
java.lang.String constant() member of the Annotation.Mapping.constant()public java.lang.String expression()
java.lang.String expression() member of the Annotation.Mapping.expression()public java.lang.Boolean ignore()
boolean ignore() member of the Annotation.Mapping.ignore()Copyright © 2012-2014. All Rights Reserved.