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:parameterwill describeinpropertyEntries[0]will describepropApropertyEntries[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 classSourceReference.BuilderFromMappingBuilds aSourceReferencefrom an@Mappping.static classSourceReference.BuilderFromPropertyBuilds aSourceReferencefrom a property.static classSourceReference.BuilderFromSourceReferenceBuilds aSourceReferencefrom a property.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SourceReferencepop()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)
-
-