Package org.mapstruct.ap.internal.model
Class NormalTypeMappingMethod
- java.lang.Object
-
- org.mapstruct.ap.internal.writer.FreeMarkerWritable
-
- org.mapstruct.ap.internal.model.common.ModelElement
-
- org.mapstruct.ap.internal.model.MappingMethod
-
- org.mapstruct.ap.internal.model.NormalTypeMappingMethod
-
- All Implemented Interfaces:
Writable
- Direct Known Subclasses:
BeanMappingMethod,ContainerMappingMethod,MapMappingMethod
public abstract class NormalTypeMappingMethod extends MappingMethod
AMappingMethodthat is used by the main mapping methods (BeanMappingMethod,MapMappingMethod,IterableMappingMethodandStreamMappingMethod(non-enum / non-value mapping)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.mapstruct.ap.internal.writer.Writable
Writable.Context
-
-
Field Summary
Fields Modifier and Type Field Description private MethodReferencefactoryMethodprivate booleanmapNullToDefaultprivate booleanoverridden
-
Constructor Summary
Constructors Constructor Description NormalTypeMappingMethod(Method method, java.util.Collection<java.lang.String> existingVariableNames, MethodReference factoryMethod, boolean mapNullToDefault, java.util.List<LifecycleCallbackMethodReference> beforeMappingReferences, java.util.List<LifecycleCallbackMethodReference> afterMappingReferences)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)MethodReferencegetFactoryMethod()java.util.Set<Type>getImportTypes()Returns a set containing thoseTypes referenced by this model element for which an import statement needs to be declared.inthashCode()booleanisMapNullToDefault()booleanisOverridden()-
Methods inherited from class org.mapstruct.ap.internal.model.MappingMethod
getAccessibility, getAfterMappingReferences, getBeforeMappingReferencesWithMappingTarget, getBeforeMappingReferencesWithoutMappingTarget, getName, getParameterNames, getParameters, getResultName, getResultType, getReturnType, getSourceParameters, getThrownTypes, isExistingInstanceMapping, isStatic, toString
-
Methods inherited from class org.mapstruct.ap.internal.writer.FreeMarkerWritable
getTemplateName, getTemplateNameForClass, write
-
-
-
-
Field Detail
-
factoryMethod
private final MethodReference factoryMethod
-
overridden
private final boolean overridden
-
mapNullToDefault
private final boolean mapNullToDefault
-
-
Constructor Detail
-
NormalTypeMappingMethod
NormalTypeMappingMethod(Method method, java.util.Collection<java.lang.String> existingVariableNames, MethodReference factoryMethod, boolean mapNullToDefault, java.util.List<LifecycleCallbackMethodReference> beforeMappingReferences, java.util.List<LifecycleCallbackMethodReference> afterMappingReferences)
-
-
Method Detail
-
getImportTypes
public java.util.Set<Type> getImportTypes()
Description copied from class:ModelElementReturns a set containing thoseTypes referenced by this model element for which an import statement needs to be declared.- Overrides:
getImportTypesin classMappingMethod- Returns:
- A set with type referenced by this model element. Must not be
null.
-
isMapNullToDefault
public boolean isMapNullToDefault()
-
isOverridden
public boolean isOverridden()
-
getFactoryMethod
public MethodReference getFactoryMethod()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classMappingMethod
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classMappingMethod
-
-