Class SelectionParameters

java.lang.Object
org.mapstruct.ap.internal.model.source.SelectionParameters

public class SelectionParameters extends Object
Holding parameters common to the selection process, common to IterableMapping, BeanMapping, PropertyMapping and MapMapping
Author:
Sjaak Derksen
  • Constructor Details

  • Method Details

    • forInheritance

      public static SelectionParameters forInheritance(SelectionParameters selectionParameters)
      Returns new selection parameters ResultType is not inherited.
      Parameters:
      selectionParameters - the selection parameters that need to be copied
      Returns:
      the selection parameters based on the given ones
    • withoutResultType

      public static SelectionParameters withoutResultType(SelectionParameters selectionParameters)
    • getQualifiers

      public List<TypeMirror> getQualifiers()
      Returns:
      qualifiers used for further select the appropriate mapping method based on class and name
    • getQualifyingNames

      public List<String> getQualifyingNames()
      Returns:
      qualifyingNames see qualifiers, used in combination with with @Named
    • getConditionQualifiers

      public List<TypeMirror> getConditionQualifiers()
      Returns:
      qualifiers used for further select the appropriate presence check method based on class and name
    • getConditionQualifyingNames

      public List<String> getConditionQualifyingNames()
      Returns:
      qualifyingNames, used in combination with with @Named
      See Also:
    • getResultType

      public TypeMirror getResultType()
      Returns:
      resultType used for further select the appropriate mapping method based on resultType (bean mapping) targetType (Iterable- and MapMapping)
    • getSourceRHS

      public SourceRHS getSourceRHS()
      Returns:
      sourceRHS used for further selection of an appropriate factory method
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • withSourceRHS

      public SelectionParameters withSourceRHS(SourceRHS sourceRHS)
    • forSourceRHS

      public static SelectionParameters forSourceRHS(SourceRHS sourceRHS)
    • empty

      public static SelectionParameters empty()