Class SelectionParameters
java.lang.Object
org.mapstruct.ap.internal.model.source.SelectionParameters
Holding parameters common to the selection process, common to IterableMapping, BeanMapping, PropertyMapping and
MapMapping
- Author:
- Sjaak Derksen
-
Constructor Summary
ConstructorsConstructorDescriptionSelectionParameters(List<TypeMirror> qualifiers, List<String> qualifyingNames, List<TypeMirror> conditionQualifiers, List<String> conditionQualifyingNames, TypeMirror resultType, TypeUtils typeUtils) SelectionParameters(List<TypeMirror> qualifiers, List<String> qualifyingNames, TypeMirror resultType, TypeUtils typeUtils) -
Method Summary
Modifier and TypeMethodDescriptionstatic SelectionParametersempty()booleanstatic SelectionParametersforInheritance(SelectionParameters selectionParameters) Returns new selection parameters ResultType is not inherited.static SelectionParametersforSourceRHS(SourceRHS sourceRHS) inthashCode()static SelectionParameterswithoutResultType(SelectionParameters selectionParameters) withSourceRHS(SourceRHS sourceRHS)
-
Constructor Details
-
SelectionParameters
public SelectionParameters(List<TypeMirror> qualifiers, List<String> qualifyingNames, TypeMirror resultType, TypeUtils typeUtils) -
SelectionParameters
public SelectionParameters(List<TypeMirror> qualifiers, List<String> qualifyingNames, List<TypeMirror> conditionQualifiers, List<String> conditionQualifyingNames, TypeMirror resultType, TypeUtils typeUtils)
-
-
Method Details
-
forInheritance
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
-
getQualifiers
- Returns:
- qualifiers used for further select the appropriate mapping method based on class and name
-
getQualifyingNames
- Returns:
- qualifyingNames see qualifiers, used in combination with with @Named
-
getConditionQualifiers
- Returns:
- qualifiers used for further select the appropriate presence check method based on class and name
-
getConditionQualifyingNames
- Returns:
- qualifyingNames, used in combination with with @Named
- See Also:
-
getResultType
- Returns:
- resultType used for further select the appropriate mapping method based on resultType (bean mapping) targetType (Iterable- and MapMapping)
-
getSourceRHS
- Returns:
- sourceRHS used for further selection of an appropriate factory method
-
hashCode
public int hashCode() -
equals
-
withSourceRHS
-
forSourceRHS
-
empty
-