public class MappingsPrism extends Object
@org.mapstruct.Mappings annotation.| Modifier and Type | Class and Description |
|---|---|
static class |
MappingsPrism.Values
A class whose members corespond to those of org.mapstruct.Mappings
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.
|
AnnotationMirror |
mirror
The underlying AnnotationMirror of the annotation
represented by this Prism.
|
MappingsPrism.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 |
|---|---|
static MappingsPrism |
getInstance(AnnotationMirror mirror)
Return a prism of the
@org.mapstruct.Mappings annotation whose mirror is mirror. |
static MappingsPrism |
getInstanceOn(Element e)
Return a prism representing the
@org.mapstruct.Mappings annotation on 'e'. |
List<MappingPrism> |
value()
Returns a List
value() member of the Annotation. |
public final MappingsPrism.Values values
public final boolean isValid
public final AnnotationMirror mirror
public static MappingsPrism getInstanceOn(Element e)
@org.mapstruct.Mappings annotation on 'e'.
similar to e.getAnnotation(org.mapstruct.Mappings.class) except that
an instance of this class rather than an instance of org.mapstruct.Mappings
is returned.public static MappingsPrism getInstance(AnnotationMirror mirror)
@org.mapstruct.Mappings annotation whose mirror is mirror.public List<MappingPrism> value()
value() member of the Annotation.Mappings.value()Copyright © 2012-2013. All Rights Reserved.