Class MappingReferences

java.lang.Object
org.mapstruct.ap.internal.model.beanmapping.MappingReferences

public class MappingReferences extends Object
  • Constructor Details

    • MappingReferences

      public MappingReferences(Set<MappingReference> mappingReferences, boolean restrictToDefinedMappings)
    • MappingReferences

      public MappingReferences(Set<MappingReference> mappingReferences, boolean restrictToDefinedMappings, boolean forForgedMethods)
  • Method Details

    • 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
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object