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.GeneratedTypeMethod
-
- 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)- Author:
- Filip Hrisafov
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.mapstruct.ap.internal.writer.Writable
Writable.Context
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)List<Annotation>getAnnotations()MethodReferencegetFactoryMethod()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
filterMappingTarget, 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
-
-
-
-
Method Detail
-
getImportTypes
public 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()
-
getAnnotations
public List<Annotation> getAnnotations()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classMappingMethod
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classMappingMethod
-
-