Package org.mapstruct.ap.internal.model
Class SupportingField
java.lang.Object
org.mapstruct.ap.internal.writer.FreeMarkerWritable
org.mapstruct.ap.internal.model.common.ModelElement
org.mapstruct.ap.internal.model.Field
org.mapstruct.ap.internal.model.SupportingField
- All Implemented Interfaces:
Writable
supports the
- Author:
- Sjaak Derksen
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.mapstruct.ap.internal.writer.Writable
Writable.Context -
Constructor Summary
ConstructorsConstructorDescriptionSupportingField(SupportingMappingMethod definingMethod, FieldReference fieldReference, String name) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddAllFieldsIn(Set<SupportingMappingMethod> supportingMappingMethods, Set<Field> targets) static FieldgetSafeField(SupportingMappingMethod method, FieldReference ref, Set<Field> existingFields) Returns the name of the template to be used for a specific writable type.Methods inherited from class org.mapstruct.ap.internal.model.Field
equals, getFieldNames, getImportTypes, getType, getVariableName, hashCode, isTypeRequiresImport, isUsed, setTypeRequiresImport, setUsedMethods inherited from class org.mapstruct.ap.internal.writer.FreeMarkerWritable
getTemplateNameForClass, write
-
Constructor Details
-
SupportingField
public SupportingField(SupportingMappingMethod definingMethod, FieldReference fieldReference, String name)
-
-
Method Details
-
getTemplateName
Description copied from class:FreeMarkerWritableReturns the name of the template to be used for a specific writable type. By default,FreeMarkerWritable.getTemplateNameForClass(Class)is called withgetClass(), but this can be customized by overriding this method if required.- Overrides:
getTemplateNamein classFreeMarkerWritable- Returns:
- the name of the template. Must not be
null.
-
getTemplateParameter
-
getDefiningMethod
-
addAllFieldsIn
public static void addAllFieldsIn(Set<SupportingMappingMethod> supportingMappingMethods, Set<Field> targets) -
getSafeField
public static Field getSafeField(SupportingMappingMethod method, FieldReference ref, Set<Field> existingFields)
-