Package org.mapstruct.ap.internal.model
Class AnnotationMapperReference
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.MapperReference
org.mapstruct.ap.internal.model.AnnotationMapperReference
- All Implemented Interfaces:
Writable
Mapper reference which is retrieved via Annotation-based dependency injection.
The dependency injection may vary between field and constructor injection. Thus, it is possible to define, whether to include annotations on the field.
The dependency injection may vary between field and constructor injection. Thus, it is possible to define, whether to include annotations on the field.
- Author:
- Gunnar Morling, Andreas Gudian, Kevin Grüneberg
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.mapstruct.ap.internal.writer.Writable
Writable.Context -
Constructor Summary
ConstructorsConstructorDescriptionAnnotationMapperReference(Type type, String variableName, List<Annotation> annotations, boolean isUsed, boolean fieldFinal, boolean includeAnnotationsOnField) -
Method Summary
Modifier and TypeMethodDescriptionReturns a set containing thoseTypes referenced by this model element for which an import statement needs to be declared.booleanbooleanwithNewAnnotations(List<Annotation> annotations) Methods inherited from class org.mapstruct.ap.internal.model.MapperReference
findMapperReferenceMethods inherited from class org.mapstruct.ap.internal.model.Field
equals, getFieldNames, getType, getVariableName, hashCode, isTypeRequiresImport, isUsed, setTypeRequiresImport, setUsedMethods inherited from class org.mapstruct.ap.internal.writer.FreeMarkerWritable
getTemplateName, getTemplateNameForClass, write
-
Constructor Details
-
AnnotationMapperReference
public AnnotationMapperReference(Type type, String variableName, List<Annotation> annotations, boolean isUsed, boolean fieldFinal, boolean includeAnnotationsOnField)
-
-
Method Details
-
getAnnotations
-
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 classField- Returns:
- A set with type referenced by this model element. Must not be
null.
-
isFieldFinal
public boolean isFieldFinal() -
isIncludeAnnotationsOnField
public boolean isIncludeAnnotationsOnField() -
withNewAnnotations
-