Package org.mapstruct.ap.internal.model
Class AnnotatedSetter
- 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.AnnotatedSetter
-
- All Implemented Interfaces:
Writable
public class AnnotatedSetter extends GeneratedTypeMethod
- Author:
- Lucas Resch
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.mapstruct.ap.internal.writer.Writable
Writable.Context
-
-
Constructor Summary
Constructors Constructor Description AnnotatedSetter(Field field, Collection<Annotation> methodAnnotations, Collection<Annotation> parameterAnnotations)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFieldName()
Set<Type>
getImportTypes()
Returns a set containing thoseType
s referenced by this model element for which an import statement needs to be declared.Collection<Annotation>
getMethodAnnotations()
Collection<Annotation>
getParameterAnnotations()
Type
getType()
-
Methods inherited from class org.mapstruct.ap.internal.writer.FreeMarkerWritable
getTemplateName, getTemplateNameForClass, write
-
-
-
-
Constructor Detail
-
AnnotatedSetter
public AnnotatedSetter(Field field, Collection<Annotation> methodAnnotations, Collection<Annotation> parameterAnnotations)
-
-
Method Detail
-
getImportTypes
public Set<Type> getImportTypes()
Description copied from class:ModelElement
Returns a set containing thoseType
s referenced by this model element for which an import statement needs to be declared.- Specified by:
getImportTypes
in classModelElement
- Returns:
- A set with type referenced by this model element. Must not be
null
.
-
getType
public Type getType()
-
getFieldName
public String getFieldName()
-
getMethodAnnotations
public Collection<Annotation> getMethodAnnotations()
-
getParameterAnnotations
public Collection<Annotation> getParameterAnnotations()
-
-