Class MappingReferences
- java.lang.Object
-
- org.mapstruct.ap.internal.model.beanmapping.MappingReferences
-
public class MappingReferences extends Object
-
-
Constructor Summary
Constructors Constructor Description MappingReferences(Set<MappingReference> mappingReferences, boolean restrictToDefinedMappings)
MappingReferences(Set<MappingReference> mappingReferences, boolean restrictToDefinedMappings, boolean forForgedMethods)
MappingReferences(Set<MappingReference> mappingReferences, List<MappingReference> targetThisReferences, boolean restrictToDefinedMappings)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>
collectNestedDependsOn()
static MappingReferences
empty()
boolean
equals(Object o)
static MappingReferences
forSourceMethod(SourceMethod sourceMethod, Type targetType, Set<String> targetProperties, FormattingMessager messager, TypeFactory typeFactory)
Set<MappingReference>
getMappingReferences()
List<MappingReference>
getTargetThisReferences()
int
hashCode()
boolean
hasNestedTargetReferences()
Check there are nested target references for this mapping options.boolean
isForForgedMethods()
boolean
isRestrictToDefinedMappings()
-
-
-
Constructor Detail
-
MappingReferences
public MappingReferences(Set<MappingReference> mappingReferences, List<MappingReference> targetThisReferences, boolean restrictToDefinedMappings)
-
MappingReferences
public MappingReferences(Set<MappingReference> mappingReferences, boolean restrictToDefinedMappings)
-
MappingReferences
public MappingReferences(Set<MappingReference> mappingReferences, boolean restrictToDefinedMappings, boolean forForgedMethods)
-
-
Method Detail
-
empty
public static MappingReferences empty()
-
forSourceMethod
public static MappingReferences forSourceMethod(SourceMethod sourceMethod, Type targetType, Set<String> targetProperties, FormattingMessager messager, TypeFactory typeFactory)
-
getMappingReferences
public Set<MappingReference> getMappingReferences()
-
isRestrictToDefinedMappings
public boolean isRestrictToDefinedMappings()
-
isForForgedMethods
public boolean isForForgedMethods()
-
collectNestedDependsOn
public Set<String> collectNestedDependsOn()
- Returns:
- all dependencies to other properties the contained mappings are dependent on
-
hasNestedTargetReferences
public boolean hasNestedTargetReferences()
Check there are nested target references for this mapping options.- Returns:
- boolean, true if there are nested target references
-
getTargetThisReferences
public List<MappingReference> getTargetThisReferences()
-
-