Class SourceReference
- java.lang.Object
-
- org.mapstruct.ap.internal.model.beanmapping.AbstractReference
-
- org.mapstruct.ap.internal.model.beanmapping.SourceReference
-
public class SourceReference extends AbstractReference
This class describes the source side of a property mapping.It contains the source parameter, and all individual (nested) property entries. So consider the following mapping method:
@Mapping(target = "propC", source = "in.propA.propB") TypeB mappingMethod(TypeA in);
Then:parameter
will describein
propertyEntries[0]
will describepropA
propertyEntries[1]
will describepropB
AbstractReference.isValid()
will return true when no problems are detected during building.- Author:
- Sjaak Derksen, Filip Hrisafov
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SourceReference.BuilderFromMapping
Builds aSourceReference
from an@Mappping
.static class
SourceReference.BuilderFromProperty
Builds aSourceReference
from a property.static class
SourceReference.BuilderFromSourceReference
Builds aSourceReference
from a property.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SourceReference
pop()
List<SourceReference>
push(TypeFactory typeFactory, FormattingMessager messager, Method method)
-
Methods inherited from class org.mapstruct.ap.internal.model.beanmapping.AbstractReference
getDeepestProperty, getDeepestPropertyName, getElementNames, getParameter, getPropertyEntries, getShallowestProperty, getShallowestPropertyName, isNested, isValid, toString
-
-
-
-
Method Detail
-
pop
public SourceReference pop()
-
push
public List<SourceReference> push(TypeFactory typeFactory, FormattingMessager messager, Method method)
-
-