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)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>collectNestedDependsOn()static MappingReferencesempty()booleanequals(Object o)static MappingReferencesforSourceMethod(SourceMethod sourceMethod, Type targetType, Set<String> targetProperties, FormattingMessager messager, TypeFactory typeFactory)Set<MappingReference>getMappingReferences()inthashCode()booleanhasNestedTargetReferences()Check there are nested target references for this mapping options.booleanisForForgedMethods()booleanisRestrictToDefinedMappings()
-
-
-
Constructor Detail
-
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
-
-