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 Summary
Constructors Constructor Description SelectionParameters(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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static SelectionParameters
forInheritance(SelectionParameters selectionParameters)
Returns new selection parameters ResultType is not inherited.static SelectionParameters
forSourceRHS(SourceRHS sourceRHS)
List<TypeMirror>
getConditionQualifiers()
List<String>
getConditionQualifyingNames()
List<TypeMirror>
getQualifiers()
List<String>
getQualifyingNames()
TypeMirror
getResultType()
SourceRHS
getSourceRHS()
int
hashCode()
static SelectionParameters
withoutResultType(SelectionParameters selectionParameters)
SelectionParameters
withSourceRHS(SourceRHS sourceRHS)
-
-
-
Constructor Detail
-
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 Detail
-
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:
getConditionQualifiers()
-
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
-
withSourceRHS
public SelectionParameters withSourceRHS(SourceRHS sourceRHS)
-
forSourceRHS
public static SelectionParameters forSourceRHS(SourceRHS sourceRHS)
-
-