Package org.mapstruct.ap.internal.model
Class DefaultMappingExclusionProvider
- java.lang.Object
-
- org.mapstruct.ap.internal.model.DefaultMappingExclusionProvider
-
- All Implemented Interfaces:
MappingExclusionProvider
class DefaultMappingExclusionProvider extends java.lang.Object implements MappingExclusionProvider
The default implementation of theMappingExclusionProviderservice provider interface. With the default implementation, MapStruct will not consider classes in thejavaandjavaxpackage as source / target for an automatic sub-mapping. The only exception is theCollection,MapandStreamtypes.- Since:
- 1.2
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.regex.PatternJAVA_JAVAX_PACKAGE
-
Constructor Summary
Constructors Constructor Description DefaultMappingExclusionProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisExcluded(javax.lang.model.element.TypeElement typeElement)Checks if MapStruct should not generate an automatic sub-mapping for the providedTypeElement, i.e.protected booleanisFullyQualifiedNameExcluded(javax.lang.model.element.Name name)
-
-
-
Method Detail
-
isExcluded
public boolean isExcluded(javax.lang.model.element.TypeElement typeElement)
Description copied from interface:MappingExclusionProviderChecks if MapStruct should not generate an automatic sub-mapping for the providedTypeElement, i.e. MapStruct will not try to descent into this class and won't try to automatically map it with some other type. The giventypeElementwill be excluded from the automatic sub-mapping generation- Specified by:
isExcludedin interfaceMappingExclusionProvider- Parameters:
typeElement- that needs to be checked- Returns:
trueif MapStruct should exclude the providedTypeElementfrom an automatic sub-mapping
-
isFullyQualifiedNameExcluded
protected boolean isFullyQualifiedNameExcluded(javax.lang.model.element.Name name)
-
-